Open KSti56 opened 2 months ago
You should be able to shell into one of the containers and then install pulseaudio-utils which includes paplay. From there it should be easier to trouble shoot.
From the host run this to shell into the container:
docker compose exec Instance1 sh
Once in the container, run this to install paplay:
apk add pulseaudio-utils
Hey @noelhibbard, thanks for the great work on this repository. I'm trying to help someone run 3-4 AirPlay instances through a 4-channel USB interface. It took quite a while for me to figure out that I needed to disable promiscuous mode in VirtualBox and in the VM (just adding that in hopes that it helps someone in the future!). Now I have everything set up and can connect to the AirPlay server(s) from my phone. Unfortunately, it seems that there is no audio going to PulseAudio. Here's my
docker-compose.yml
file:This is what my instance 1 config file looks like at the moment (I removed everything that was commented out):
I've tried changing the playback_modes, removing the server property for the pa block, and I've tried multiple different sinks (including the main one for the USB interface).
Here's my /etc/pulse/system.pa file:
As for the host side, everything seems fine. I can play audio using ALSA directly and I can also play audio using paplay. Here's the command I use to test that:
sudo paplay --device=sink_ch1 /usr/share/sounds/alsa/Front_Center.wav
The Docker container is definitely making some connection to the PulseAudio socket. I tried deliberately changing the server path and it crashed saying it couldn't connect (whereas it connects just fine using "unix:/tmp/pulseaudio.socket"), so obviously it's at least seeing the PulseAudio server. At this point it seems like I need to troubleshoot/monitor between Docker and PulseAudio, I'm just not exactly sure how to do that. I tried running this command a few times while playing audio, but it continued to show 0 volume for all of the sinks:
sudo pactl list sink-inputs | grep -e Sink: -e media.name -e application.name -e Volume:
I don't mind troubleshooting myself, I'm just at a loss for what to try next. Is there a way for me to view the sinks inside of the Docker container? Or somehow install and use paplay in the container?
I'm not super familiar with ALSA, PulseAudio, or Docker, so it's entirely possible that this is just a simple mistake. I appreciate any advice or help you can give!