Hi @TianpingHsu @learner~.~ ,
Welcome to Microsoft Q&A!
The audio sample demonstrates the scenario for process-based loopback capture, and this is actually not tied to a specific audio endpoint. Internally the m_AudioClient
interface points to the AudioSes!CMixerClient
class but unfortunately the GetMixFormat()
and IsFormatSupported()
methods are not supported in the class. This is the reason why you get E_NOTIMPL on COM calls.
The audio format hard coded in the sample code, this is the CD quality audio format (2 channel, 16 bit, 44100 Hz) which is the most popular format used in WAV audio, so it is safe to use this hard coded format. You can submit a request to the Github to remove the incorrect comments.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.