Skip to content
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

Sound not playing #6

Closed
joinstuff opened this issue Jan 10, 2022 · 14 comments
Closed

Sound not playing #6

joinstuff opened this issue Jan 10, 2022 · 14 comments
Labels
released Released

Comments

@joinstuff
Copy link

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 ?

@GioF71
Copy link
Owner

GioF71 commented Jan 11, 2022

Hello, I have been away on holiday for a few days, I will come back to you as soon as I can.

@GioF71
Copy link
Owner

GioF71 commented Jan 11, 2022

Can you provide your docker run command or docker compose file, along with the output of the command:

aplay -L

Thank you

@vespadj
Copy link

vespadj commented Jan 12, 2022

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

@GioF71
Copy link
Owner

GioF71 commented Jan 13, 2022

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

@GioF71
Copy link
Owner

GioF71 commented Jan 13, 2022

Documentation fixed (host networking)

@GioF71
Copy link
Owner

GioF71 commented Jan 13, 2022

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.

@GioF71
Copy link
Owner

GioF71 commented Jan 13, 2022

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

@GioF71
Copy link
Owner

GioF71 commented Jan 13, 2022

@vespadj are you using the raspberry pi onboard audio card?

@vespadj
Copy link

vespadj commented Jan 13, 2022

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.

@GioF71
Copy link
Owner

GioF71 commented Jan 14, 2022

@vespadj, please have a look at the README.md file, I just added your docker-compose.

@GioF71
Copy link
Owner

GioF71 commented Jan 20, 2022

Hello @vespadj, can we close this issue?

@vespadj
Copy link

vespadj commented Jan 20, 2022

Hello @joinstuff , can @GioF71 close this issue?
Yes by my side.

@GioF71
Copy link
Owner

GioF71 commented Jan 20, 2022

I forgot to ask the op @joinstuff, sorry

@GioF71
Copy link
Owner

GioF71 commented Jan 30, 2022

Closing. @joinstuff feel free to reopen or create a new issue if you need further information.

@GioF71 GioF71 closed this as completed Jan 30, 2022
@GioF71 GioF71 added the released Released label Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Released
Projects
None yet
Development

No branches or pull requests

3 participants