Can wasapi record the loopback audio and exclude specify audio stream

tonyye 1 Reputation point

I have one communication application, now I share my desktop and audio to other people.
I use wasapi to capture the system's audio, but the captured audio contains the mix of all audio being played, so it contains other people's voice too.
If I share this mixed audio to other people, he would get echo.
Is there any api to capture the mixed audio and exclude my application's audio?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,070 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 7,106 Reputation points Microsoft Vendor

    Here is an example of loopback-mode audio capturing. It's also be a good idea to read Chrome source code directly if Chrome has a solution.

  2. Xiaopo Yang - MSFT 7,106 Reputation points Microsoft Vendor

    Benefited to (Loopback)Capture audio: Are APO effects captured too?, the questioner points the Application loopback API Capture Sample which can exclude a process from capture.

    0 comments No comments