Sound not playing
joinstuff opened this issue · comments
Hi , I am using your docker-compose file with a Topping E30 DAC , LMS and Squeezelite in containers. However even if LMS sees the Sqeezelite player as functional , sound is not played in the speakers. Any ideas why this is happening ?
Hello, I have been away on holiday for a few days, I will come back to you as soon as I can.
Can you provide your docker run command or docker compose file, along with the output of the command:
aplay -L
Thank you
Same here.
Linux raspberrypi 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l
on https://hub.docker.com/r/giof71/squeezelite
docker run -d --rm --network host --device /dev/snd --net host giof71/squeezelite:stable
returns error: double host
So running by:
docker run --privileged -it -i --entrypoint=/bin/bash -t giof71/squeezelite:stable
works and sounds to hdmi.
I would like to use docker-compose and headphone jack.
By docker-compose, run and connect but any sound.
squeezelite:
image: giof71/squeezelite:stable
container_name: squeezelite
devices:
- /dev/snd:/dev/snd
environment:
- SQUEEZELITE_NAME=home-pi
#- SQUEEZELITE_AUDIO_DEVICE=hw:CARD=Headphones,DEV=0
#- SQUEEZELITE_AUDIO_DEVICE=default:CARD=Headphones
- SQUEEZELITE_AUDIO_DEVICE=default:CARD=b1
- SQUEEZELITE_SERVER_PORT=192.168.1.9:3483
- SQUEEZELITE_RATES="44100,48000,88200,96000,176400,192000,352800,384000"
- SQUEEZELITE_UPSAMPLING="v::4:28:95:105:45"
- STARTUP_DELAY_SEC=1
restart: unless-stopped
I login to
docker run --privileged -it -i --entrypoint=/bin/bash -t giof71/squeezelite:stable
(I use this but I'm not sure it is correct), then
aplay -L
returns:
bash: aplay: command not found
I also try:
# /usr/bin/squeezelite -l
Output devices:
null - Discard all samples (playback) or generate zero samples (capture)
default:CARD=b1 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Default Audio Device
sysdefault:CARD=b1 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Default Audio Device
dmix:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample mixing device
dsnoop:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample snooping device
hw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct hardware device without any conversions
plughw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Hardware device with all software conversions
default:CARD=Headphones - bcm2835 Headphones, bcm2835 Headphones - Default Audio Device
sysdefault:CARD=Headphones - bcm2835 Headphones, bcm2835 Headphones - Default Audio Device
dmix:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample mixing device
dsnoop:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample snooping device
hw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct hardware device without any conversions
plughw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Hardware device with all software conversions
Finally, aplay -L
run in the system terminal:
default
Playback/recording through the PulseAudio sound server
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
sysdefault:CARD=b1
bcm2835 HDMI 1, bcm2835 HDMI 1
Default Audio Device
dmix:CARD=b1,DEV=0
bcm2835 HDMI 1, bcm2835 HDMI 1
Direct sample mixing device
dsnoop:CARD=b1,DEV=0
bcm2835 HDMI 1, bcm2835 HDMI 1
Direct sample snooping device
hw:CARD=b1,DEV=0
bcm2835 HDMI 1, bcm2835 HDMI 1
Direct hardware device without any conversions
plughw:CARD=b1,DEV=0
bcm2835 HDMI 1, bcm2835 HDMI 1
Hardware device with all software conversions
usbstream:CARD=b1
bcm2835 HDMI 1
USB Stream Output
sysdefault:CARD=Headphones
bcm2835 Headphones, bcm2835 Headphones
Default Audio Device
dmix:CARD=Headphones,DEV=0
bcm2835 Headphones, bcm2835 Headphones
Direct sample mixing device
dsnoop:CARD=Headphones,DEV=0
bcm2835 Headphones, bcm2835 Headphones
Direct sample snooping device
hw:CARD=Headphones,DEV=0
bcm2835 Headphones, bcm2835 Headphones
Direct hardware device without any conversions
plughw:CARD=Headphones,DEV=0
bcm2835 Headphones, bcm2835 Headphones
Hardware device with all software conversions
usbstream:CARD=Headphones
bcm2835 Headphones
USB Stream Output
As you can see above I try three SQUEEZELITE_AUDIO_DEVICE
, but any sounds.
Sorry for long post.
I hope can this help to resolve.
Thanks
Just a quick reply, the doc is probably wrong about host networking
Either remove --network host
or --net host
Sorry about that, I will try to fix as soon as possible.
I will have a look at the rest of your post(s) and come back hopefully with some answers
Documentation fixed (host networking)
Hello, are you sure your devices support those very high rates?
First you might want to try without SQUEEZELITE_RATES and SQUEEZELITE_UPSAMPLING variables.
Let me know if this helps.
Hello, looking at the specs of your dac, it seems it should work at those rates. Can you try anyway with a simple configuration and see if you can get sound?
Then we can setup upsampling if you wish to do so.
Cheers
@vespadj are you using the raspberry pi onboard audio card?
squeezelite:
image: giof71/squeezelite:stable
container_name: squeezelite
devices:
- /dev/snd:/dev/snd
environment:
- SQUEEZELITE_NAME=home-pi
- STARTUP_DELAY_SEC=1
- SQUEEZELITE_AUDIO_DEVICE=hw:CARD=Headphones,DEV=0
restart: unless-stopped
This woks, thanks! using audio jack onboard.
I suggest you to put in documentation a minimal docker-compose code as entry point.
@vespadj, please have a look at the README.md file, I just added your docker-compose.
Hello @vespadj, can we close this issue?
Hello @joinstuff , can @GioF71 close this issue?
Yes by my side.
I forgot to ask the op @joinstuff, sorry
Closing. @joinstuff feel free to reopen or create a new issue if you need further information.