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 development Windows API - Win32
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    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 12,731 Reputation points Microsoft External Staff
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.