![]() In the call to the IAudioClient::Initialize method, change the value of the second parameter ( StreamFlags) from 0 to AUDCLNT_STREAMFLAGS_LOOPBACK.In the call to the IMMDeviceEnumerator::GetDefaultAudioEndpoint method, change the first parameter ( dataFlow) from eCapture to eRender.In the code example in Capturing a Stream, the RecordAudioStream function can be easily modified to configure a loopback-mode capture stream. However, other types of audio applications might find loopback mode useful for capturing the system mix that is being played by the audio engine. WASAPI provides loopback mode primarily to support acoustic echo cancellation (AEC). ![]() Initialize a capture stream in loopback mode on the rendering endpoint device.Īfter following these steps, the client can call the IAudioClient::GetService method to obtain an IAudioCaptureClient interface on the rendering endpoint device.Obtain an IMMDevice interface for the rendering endpoint device.To open a stream in loopback mode, the client must: In loopback mode, a client of WASAPI can capture the audio stream that is being played by a rendering endpoint device.
0 Comments
Leave a Reply. |