0

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?

4
  • The most stable/reliable way would be to create a virtual driver device and route it whatever you want. Something of a virtual cable. Commented Jun 24, 2023 at 14:24
  • @MichaelChourdakis the device is not the problem. The problem is how to send process output to it. Commented Jun 25, 2023 at 1:03
  • 1
    Does Audio Router work for you? Commented Jun 26, 2023 at 5:14
  • @YangXiaoPo-MSFT thanks, it appears to work for many scenarios. Commented Jun 26, 2023 at 19:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.