snapcast icon indicating copy to clipboard operation
snapcast copied to clipboard

Snapclient not working with Raspiaudio Ultra++ (wm8960-soundcard)

Open rwjack opened this issue 1 year ago • 1 comments

Describe the bug Snapclient just exits. Running with parameters -s (21..25) has the same output

Installed audio drivers from here: https://github.com/RASPIAUDIO/WM8960-Audio-HAT

Anyone encounter something similar?

root in devpi2 in ~ ❯ snapclient --host [redacted] --hostID devpi2 --logfilter debug
2023-03-12 15-20-01.213 [Debug] (Snapclient) Trying to get PCM device for player: alsa, parameter: , card: default
2023-03-12 15-20-01.318 [Info] (Snapclient) Version 0.27.0, revision 54a3d862
2023-03-12 15-20-01.320 [Info] (Connection) Resolving host IP for: [redacted]
2023-03-12 15-20-01.321 [Info] (Connection) Connecting
2023-03-12 15-20-01.326 [Notice] (Connection) Connected to [redacted]
2023-03-12 15-20-01.328 [Info] (Connection) My MAC: "[redacted]", socket: 8
2023-03-12 15-20-02.038 [Debug] (Connection) outstanding async_write
2023-03-12 15-20-02.048 [Info] (Controller) ServerSettings - buffer: 1000, latency: 0, volume: 100, muted: 0
2023-03-12 15-20-02.052 [Info] (Controller) Codec: flac, sampleformat: 44100:16:2
2023-03-12 15-20-02.054 [Info] (Player) Player name: alsa, device: sysdefault, description: Default Audio Device, idx: 1, sharing mode: unspecified, parameters: <none>
2023-03-12 15-20-02.057 [Info] (Player) Mixer mode: software, parameters: <none>
2023-03-12 15-20-02.059 [Info] (Player) Sampleformat: 44100:16:2, stream: 44100:16:2
2023-03-12 15-20-02.062 [Info] (Alsa) Using default buffer_time: 80 ms, default fragments: 4
2023-03-12 15-20-02.083 [Error] (Alsa) Exception: Can't open sysdefault, error: Unknown error 524, code: -524
2023-03-12 15-20-02.085 [Debug] (Connection) Disconnecting
2023-03-12 15-20-02.089 [Debug] (Connection) Disconnected
2023-03-12 15-20-02.092 [Fatal] (Snapclient) Exception: Can't open sysdefault, error: Unknown error 524
2023-03-12 15-20-02.095 [Notice] (Snapclient) Snapclient terminated.
# regular audio works normally
root in devpi2 in ~ ❯ aplay piano2.wav
Playing WAVE 'piano2.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
root in devpi2 in ~ ❯ snapclient -l
0: null
Discard all samples (playback) or generate zero samples (capture)

1: sysdefault
Default Audio Device

2: lavrate
Rate Converter Plugin Using Libav/FFmpeg Library

3: samplerate
Rate Converter Plugin Using Samplerate Library

4: speexrate
Rate Converter Plugin Using Speex Resampler

5: jack
JACK Audio Connection Kit

6: oss
Open Sound System

7: pulse
PulseAudio Sound Server

8: upmix
Plugin for channel upmix (4,6,8)

9: vdownmix
Plugin for channel downmix (stereo) with a simple spacialization

10: default


11: playback


12: capture


13: dmixed


14: array


15: hw:CARD=vc4hdmi,DEV=0
vc4-hdmi, MAI PCM i2s-hifi-0
Direct hardware device without any conversions

16: plughw:CARD=vc4hdmi,DEV=0
vc4-hdmi, MAI PCM i2s-hifi-0
Hardware device with all software conversions

17: sysdefault:CARD=vc4hdmi
vc4-hdmi, MAI PCM i2s-hifi-0
Default Audio Device

18: hdmi:CARD=vc4hdmi,DEV=0
vc4-hdmi, MAI PCM i2s-hifi-0
HDMI Audio Output

19: dmix:CARD=vc4hdmi,DEV=0
vc4-hdmi, MAI PCM i2s-hifi-0
Direct sample mixing device

20: usbstream:CARD=vc4hdmi
vc4-hdmi
USB Stream Output

21: hw:CARD=wm8960soundcard,DEV=0
wm8960-soundcard, bcm2835-i2s-wm8960-hifi wm8960-hifi-0
Direct hardware device without any conversions

22: plughw:CARD=wm8960soundcard,DEV=0
wm8960-soundcard, bcm2835-i2s-wm8960-hifi wm8960-hifi-0
Hardware device with all software conversions

23: sysdefault:CARD=wm8960soundcard
wm8960-soundcard, bcm2835-i2s-wm8960-hifi wm8960-hifi-0
Default Audio Device

24: dmix:CARD=wm8960soundcard,DEV=0
wm8960-soundcard, bcm2835-i2s-wm8960-hifi wm8960-hifi-0
Direct sample mixing device

25: usbstream:CARD=wm8960soundcard
wm8960-soundcard
USB Stream Output

Environment details

  • OS: Raspbian
  • Snapcast version: 0.27.0
  • Installed from a package

rwjack avatar Mar 12 '23 14:03 rwjack

FYI, snapclient works no problem with MIC+ v2

wget -O - mic.raspiaudio.com | bash
wget -O - test.raspiaudio.com | bash

rwjack avatar Mar 15 '23 10:03 rwjack

Sorry, seems that no one can help you with this. Maybe you can open a Discussion?

badaix avatar Mar 27 '24 08:03 badaix