configuration of pulseaudio
i am looking for someone who knows pulseaudio, alsa and docker.
I want several docker to play music on a soundcard.
I want to run several docker in parallel.
In each docker runs a program (for testing purposes aplay) that plays music.
If you pass the hardware "--device /dev/snd" then only one docker can hear something and the other docker gets an error message that the output is not available right now. Using Pulseaudio it should work but I can't get it to work.
Program is Java so only alsa works?
The software should run on a server without SoundCard. Therefore the final output is loopback. And you should be able to record the output via arecord.
Example see picture. Spotify and Firefox would then each be a Docker.