You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stream some data to it cat /dev/urandom > /opt/snapserver/snapfifo
the client plays ok
Stop the source, wait for the [Notice] (Alsa) No chunk received for 5000ms. Closing ALSA. message.
restart the streaming
The client produces no audio, throws the following errors:
2024-12-25 22-53-57.439 [Info] (Alsa) PCM name: plughw:0,0, sample rate: 44100 Hz, channels: 2, buffer time: 80000 us, periods: 4, period time: 20000 us, period frames: 882
2024-12-25 22-53-57.439 [Debug] (Stream) age > 0: 53051ms, dropping old chunks
2024-12-25 22-53-57.439 [Debug] (Stream) age: 2913, requested chunk_duration: 80, duration: 26
2024-12-25 22-53-57.439 [Info] (Alsa) Failed to get chunk
2024-12-25 22-53-57.454 [Debug] (Stream) age > 0: 2928ms, dropping old chunks
2024-12-25 22-53-57.455 [Debug] (Stream) age: 2902, requested chunk_duration: 80, duration: 26
2024-12-25 22-53-57.455 [Info] (Alsa) Failed to get chunk
2024-12-25 22-53-57.473 [Debug] (Stream) age > 0: 2921ms, dropping old chunks
2024-12-25 22-53-57.474 [Debug] (Stream) age: 2895, requested chunk_duration: 80, duration: 26
2024-12-25 22-53-57.474 [Info] (Alsa) Failed to get chunk
2024-12-25 22-53-57.494 [Debug] (Stream) age > 0: 2915ms, dropping old chunks
2024-12-25 22-53-57.494 [Debug] (Stream) age: 2889, requested chunk_duration: 80, duration: 26
2024-12-25 22-53-57.494 [Info] (Alsa) Failed to get chunk
2024-12-25 22-53-57.537 [Debug] (Stream) age > 0: 2932ms, dropping old chunks
2024-12-25 22-53-57.537 [Debug] (Stream) age: 2906, requested chunk_duration: 80, duration: 26
2024-12-25 22-53-57.537 [Info] (Alsa) Failed to get chunk
killing and restarting the client fixes the problem and continues the streaming.
Environment details
OS: RaspberryOS 64 bit bullseye on both server (RPI 4) and client (RPIZ2W)
Snapcast version 0.29 installed from the release .deb arm64 files
what I've tried
chunk_ms below 30ms won't work
changing codec, changing source from pipe to alsa loopback, using librespot instead of urandom
It seems more like an audio init issue. I'm using the Waveshare WM8960 audio HAT.
Thanks for your effort in creating this non-trivial piece of software. Please let me know if any detail is missing.
The text was updated successfully, but these errors were encountered:
matteobrusa
changed the title
Consistent [Info] (Alsa) Failed to get chunk error, no sound.
Consistent "[Info] (Alsa) Failed to get chunk error", no sound.
Dec 25, 2024
Describe the bug
The client fails to play the streamed data after the first playback session, and throws
[Info] (Alsa) Failed to get chunk
.Steps to Reproduce
snapserver --logging.filter debug -c /opt/snapserver/snapserver.conf
with the following config:snapclient --logfilter debug --host <server ip> --soundcard plughw:0,0
cat /dev/urandom > /opt/snapserver/snapfifo
[Notice] (Alsa) No chunk received for 5000ms. Closing ALSA.
message.Environment details
what I've tried
It seems more like an audio init issue. I'm using the Waveshare WM8960 audio HAT.
Thanks for your effort in creating this non-trivial piece of software. Please let me know if any detail is missing.
The text was updated successfully, but these errors were encountered: