botwave
botwave copied to clipboard
BUG -> Alsa stream tokens are sent even if alsa init failed
📝 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
- start bw-server
- connect a client
- run the
livecommand in a context where the alsa capture cant start (e.g. ressource busy) - 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