When I open an application it uses my default PulseAudio output device.
I would like to force a specific application to always use a different device, is this possible?
When I open an application it uses my default PulseAudio output device.
I would like to force a specific application to always use a different device, is this possible?
Not exactly what I wanted but I found an acceptable solution by setting an environment variable each time I launch the application:
PULSE_SINK="[Speaker Name]"
e.g.
PULSE_SINK="Virtual1" mpv
Unfortunately, some applications don't honour this variable and must grab the default audio device some other way.
I found a more general solution to this problem.
Install pavucontrol it is available for every major distribution.
Launch pavucontrol and open the "Playback" tab. Launch your playback application and start playing something. Look at the "Playback" tab in pavucontrol, you can see a entry with your playing application and a button to change the used audio device and select the desired device.
You only need to do this once, pavucontrol will save the configuration.