Open amigthea opened 5 months ago
I confirmed that every time that a dropout appear it's because the PcmStream goes from idle to playing and back
snapcast | 2024-05-17 20-01-55.312 [Info] (PcmStream) State changed: default, state: idle => playing
snapcast | 2024-05-17 20-01-55.312 [Info] (Server) onStateChanged (default): playing
snapcast | bluealsa-aplay: [12] D: aplay.c:739: ALSA playback PCM underrun
snapcast | 2024-05-17 20-01-59.292 [Info] (PcmStream) State changed: default, state: playing => idle
snapcast | 2024-05-17 20-01-59.292 [Info] (Server) onStateChanged (default): idle
snapcast | 2024-05-17 20-02-00.352 [Info] (PcmStream) State changed: default, state: idle => playing
snapcast | 2024-05-17 20-02-00.352 [Info] (Server) onStateChanged (default): playing
snapcast | bluealsa-aplay: [12] D: aplay.c:739: ALSA playback PCM underrun
snapcast | 2024-05-17 20-02-01.552 [Info] (PcmStream) State changed: default, state: playing => idle
snapcast | 2024-05-17 20-02-01.552 [Info] (Server) onStateChanged (default): idle
snapcast | 2024-05-17 20-02-02.372 [Info] (PcmStream) State changed: default, state: idle => playing
snapcast | 2024-05-17 20-02-02.372 [Info] (Server) onStateChanged (default): playing
snapcast | 2024-05-17 20-02-59.192 [Info] (PcmStream) State changed: default, state: playing => idle
snapcast | 2024-05-17 20-02-59.192 [Info] (Server) onStateChanged (default): idle
snapcast | bluealsa-aplay: [12] D: aplay.c:739: ALSA playback PCM underrun
snapcast | 2024-05-17 20-03-00.352 [Info] (PcmStream) State changed: default, state: idle => playing
snapcast | 2024-05-17 20-03-00.352 [Info] (Server) onStateChanged (default): playing
I'm streaming from a smartphone via bluetooth adapter -> bluez-alsa -> alsa loopback in -> alsa loopback out -> snapserver alsa stream
I'm trying to get snapserver to source from my alsa device but I get this kind of logs, what it could be? a resample problem?
snapcast source configuration
if I record to a file and then play it on my pc it has no problem
arecord -D default -f S16_LE -r 44100 capture.wav
logs
I tried to change those values from the default but to no avail:
I can ear the audio problem both on software snapclients and snapweb clients.
I'm sure I'm missing something out, would be really glad if someone helps me out Thank you and keep up with this amazing project!