Can wasapi record the loopback audio and exclude specify audio stream

tonyye 1 Reputation point
2021-09-09T03:43:35.987+00:00

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,427 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 11,501 Reputation points Microsoft Vendor
    2021-09-09T06:12:05.187+00:00

    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 11,501 Reputation points Microsoft Vendor
    2022-01-11T08:59:46.667+00:00

    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