Waitrud Weber’s blog

things and reminders for memories

Audio Device and Includion:

We could include their sample code from Microsoft.
And, We added the includion of "mmdeviceapi.h" and we think we become able to record sounds from microphone..

 

#include 
#include 
https://docs.microsoft.com/en-us/windows/win32/api/mmdeviceapi/nn-mmdeviceapi-immdevice

//---
const IID IID_IAudioClient = __uuidof(IAudioClient);
const IID IID_IAudioCaptureClient = __uuidof(IAudioCaptureClient);
//---
IMMDevice* pDevice = NULL;
//---