botwave icon indicating copy to clipboard operation
botwave copied to clipboard

BUG -> Alsa stream tokens are sent even if alsa init failed

Open douxxtech opened this issue 10 months ago • 0 comments

📝 Description

The stream tokens are sent to the clients, even if we got an error while starting the alsa capture, which leads to errors on both sides.

💻 Environment

Component

  • [X] Server

Hardware

  • [X] Raspberry Pi Zero W

Operating System

  • [ ] Debian-based
  • [ ] Windows
  • [ ] MacOs
  • [X] Other: Fedora

Python Version

  • [X] >= 3.13
  • [ ] 3.12
  • [ ] 3.11
  • [ ] <= 3.10

🐞 Steps to Reproduce

  1. start bw-server
  2. connect a client
  3. run the live command in a context where the alsa capture cant start (e.g. ressource busy)
  4. continues even after telling that its broken

📄 Logs / Screenshots

botwave ›  live all 108
[ALSA] ALSA Error: Could not open hw:BotWave,1.
[ALSA] Has the loopback device been set up correctly ?
[BCAST] Sending stream tokens to 1 client(s)...
[FILE]   rubentxi3 (rubentxi3_192.168.1.52): Stream token sent
[BCAST] Stream tokens sent to 1/1 clients
[ALSA] To play live, please set your output sound card (ALSA) to 'BotWave'.
[ALSA] We're expecting 48000kHz on 2 channels.

botwave ›

📍 Additional Context

Not discovered on my device

douxxtech avatar Feb 02 '26 22:02 douxxtech