Fornoth / spotify-connect-web

MIT License
436 stars 66 forks source link

raspbian-hifiberry with Digi+ #143

Closed st0nec0ld closed 6 years ago

st0nec0ld commented 6 years ago

Hey guys,

without hifiberry and hdmi output, spotify connect web works fine. But i want to use my Digi+ :(

I try

./spotify-connect-web.sh --username 1234 --password 1234 --bitrate 320 --playback_device CARD=sndrpihifiberry

i got error

Loading Spotify library... Last.fm: incomplete credentials, not launched Device has no native mute min_volume_range: 0.0 Using spotify-connect-web version: 0.0.4-alpha Using libspotify_embedded version: master-v1.5.0-gfba69d71 SpInit: 0 Traceback (most recent call last): File "main.py", line 57, in connect_app = Connect(web_error_callback, web_arg_parser) File "/usr/src/app/connect.py", line 93, in init lib.SpPlaybackUpdateVolume(mixer_volume) OverflowError: integer 939771 does not fit '16-bit unsigned int'

When add --mixer Master it got error

Loading Spotify library... Last.fm: incomplete credentials, not launched Traceback (most recent call last): File "main.py", line 15, in from connect import Connect File "/usr/src/app/connect.py", line 9, in from console_callbacks import audio_arg_parser, mixer, error_callback, connection_callbacks, debug_callbacks, playback_callbacks, playback_setup File "/usr/src/app/console_callbacks.py", line 105, in mixer = alsa.Mixer(args.mixer, **mixer_card_arg) alsaaudio.ALSAAudioError: Unable to find mixer control Master,0 [default]

My aplay -L output

pi@raspberrypi:~ $ aplay -L null Discard all samples (playback) or generate zero samples (capture) dmixer softvol default sysdefault:CARD=sndrpihifiberry snd_rpi_hifiberry_digi, Default Audio Device iec958:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_digi, IEC958 (S/PDIF) Digital Audio Output dmix:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_digi, Direct sample mixing device dsnoop:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_digi, Direct sample snooping device hw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_digi, Direct hardware device without any conversions plughw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_digi, Hardware device with all software conversions

Can anybody help?

P.S. Sorry for my bad english