mikebrady / shairport-sync

AirPlay and AirPlay 2 audio player
Other
7.31k stars 574 forks source link

[Problem]: No sound output #1936

Open Gibbz opened 8 hours ago

Gibbz commented 8 hours ago

What happened?

There is no sound when i stream to the device. When i move the volume slider up, it always seems to reset to 0. How do i configure the docker image to use pipewire? Im not sure the latest arch/manjaro still has alsa as its all pipewire.

Relevant log output

No response

System Information.

Manjaro linux, latest version.

Configuration Information.

services:
  shairport:
    image: mikebrady/shairport-sync
    container_name: shairport
    environment:
        - PUID=1000
        - PGID=1000
    restart: unless-stopped
    network_mode: host
    devices:
        - /dev/snd:/dev/snd
    volumes:
        - ${HOME}/Docker/shairport/asound.conf:/etc/asound.conf
        - ${HOME}/Docker/shairport/shairport-sync.conf:/etc/shairport-sync.conf
        - /etc/localtime:/etc/localtime:ro

PulseAudio or PipeWire installed?

How did you install Shairport Sync?

Docker

Check previous issues

mikebrady commented 3 hours ago

Thanks for the post. Since your system uses PipeWire, you might find this of interest. It's intended for users who have installed Shairport Sync conventionally, but applies to Shairport Sync running in a Docker image.

Gibbz commented 1 hour ago

ok ive run the docker run --device /dev/snd mikebrady/sps-alsa-explore command. The output is bellow.

> Device Full Name:    "hw:Generic_1"
  Short Name:          "hw:1"
  This device seems suitable for use with Shairport Sync.
  Possible mixers:     "Master",0              Range:  64.00 dB
                       "Headphone",0           Range:  64.00 dB
                       "PCM",0                 Range:  51.00 dB
                       "Front",0               Range:  64.00 dB
                       "Front Mic",0           Range:  46.50 dB
                       "Surround",0            Range:  64.00 dB
                       "Center",0              Range:  64.00 dB
                       "LFE",0                 Range:  64.00 dB
                       "Line",0                Range:  46.50 dB
                       "Rear Mic",0            Range:  46.50 dB
                       "Front Mic Boost",0     Range:  30.00 dB
                       "Line Boost",0          Range:  30.00 dB
                       "Rear Mic Boost",0      Range:  30.00 dB
  The following rate and format would be chosen by Shairport Sync in "auto" mode:
     Rate              Format
     44100             S32_LE

I have asound.conf in the docker - how do i check this?

defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0 

And my config (remove .txt): shairport-sync.conf.txt