Ultimately I want to redirect process audio output elsewhere in real time. There's a standard way to do that via WASAPI: AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS
. The problem is this approach keeps the process playing its audio to the default output device.
In order to prevent process from polluting the default output device, I want to make it output to a virtual null-output sound device instead.
How do I do that? Is there a standard way to make 3rd party process think the default audio device is not the one used by the rest of the system? If not, what is the best way to lie to the process about which device is the default one via something like Detours
?