scottyhardy / docker-remote-desktop

Docker image for Remote Desktop server with audio support
MIT License
251 stars 128 forks source link

Pulseaudio only gets loaded after connecting 1 time to the rdp #8

Closed humanperzeus closed 3 years ago

humanperzeus commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Create the container and add any script that uses AUDIO. Start the Container and DONT connect via RDP.

Expected behavior Virtual Audio device is loaded and usable WITHOUT the need to connecting one time via rdp

Additional context I need to connect always 1 time via rdp, that the virtual dummy device gets created and then I can start my script that uses sound. If I don't connect via rdp, there is no dummy virtual sound available that can be used but I don't want to be forced to connect every time first. Can we change that somehow that the container creates the dummy device from beginning even when not connecting to the container via rdp?

scottyhardy commented 3 years ago

I'm not really sure what you're attempting to do here... If you're just wanting "dummy" sound as in just going to null, you can use:

rm -f /var/lib/xrdp-pulseaudio-installer/module-xrdp-{sink,source}.so

From my understanding, the pulseaudio daemon should auto-spawn when you access the audio - that's part of what I configure in the Dockerfile. I'd suggest trying pacat -vvv /udev/random to test the status of the audio device. Other than that, your use case doesn't sound like something that many others would use. If you come up with a solution and want it include, just send through a pull request and I'll happily include.