-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open soundcard #8
Comments
this fixed after I did nothing but went for business for a few days. Which means I shutdown the docker for 3 days. however, it still cannot play any music. the log shows like below:
this loop ends when I pause the music, showing like below:
I installed snapclient on both iOS and android phone, and both can get sound. I think my server workds well. but why the snapclient on my raspberry pi 3 cannot. Can anyone help? |
Regarding your first error, either the docker host OS is using the device or you specified the wrong device. Regarding error 2 (this is now wild guessing): Do you have the same timezone / time on all clients. i interpret the error message as if snapclient drops the packages because they are too old? |
I copied the docker-compose.yml from github, and made a few changes. The server yml:
The client yml:
I can control the client volume, delay, and all settings in real time. But error accurred everytime when I play some sound just like my 2nd post. |
I use hifiberry_dacplus to play music. I can use "aplay xxx.wav" to hear my sound.
But when I use snapclient, I configure "- SNAPCLIENT_OPTS=--host 192.168.100.64 --soundcard 1". It shows errors like follows:
snapcast_1 | 2024-03-27 00-49-37.908 [Error] (Snapclient) PCM device "1" not found
snapcast_1 | 2024-03-27 00-49-37.908 [Info] (Snapclient) Version 0.27.0
snapcast_1 | 2024-03-27 00-49-37.908 [Info] (Connection) Resolving host IP for: 192.168.100.64
snapcast_1 | 2024-03-27 00-49-37.908 [Info] (Connection) Connecting
snapcast_1 | 2024-03-27 00-49-37.915 [Notice] (Connection) Connected to 192.168.100.64
snapcast_1 | 2024-03-27 00-49-37.915 [Info] (Connection) My MAC: "02:42:ac:12:00:02", socket: 8
snapcast_1 | 2024-03-27 00-49-37.939 [Info] (Controller) ServerSettings - buffer: 1000, latency: 0, volume: 100, muted: 0
snapcast_1 | 2024-03-27 00-49-37.939 [Info] (Controller) Codec: pcm, sampleformat: 48000:16:2
snapcast_1 | 2024-03-27 00-49-37.939 [Info] (Player) Player name: alsa, device: 1, description: , idx: -1, sharing mode: unspecified, parameters:
snapcast_1 | 2024-03-27 00-49-37.939 [Info] (Player) Mixer mode: software, parameters:
snapcast_1 | 2024-03-27 00-49-37.939 [Info] (Player) Sampleformat: 48000:16:2, stream: 48000:16:2
snapcast_1 | 2024-03-27 00-49-37.940 [Info] (Alsa) Using default buffer_time: 80 ms, default fragments: 4
snapcast_1 | ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM 1
snapcast_1 | 2024-03-27 00-49-37.954 [Error] (Alsa) Exception: Can't open 1, error: No such file or directory, code: -2
snapcast_1 | 2024-03-27 00-49-37.956 [Fatal] (Snapclient) Exception: Can't open 1, error: No such file or directory
snapcast_1 | 2024-03-27 00-49-37.956 [Notice] (Snapclient) Snapclient terminated.
how can I fix this?
The text was updated successfully, but these errors were encountered: