How to record wav sound from mic using Windows API?
There are a series of waveInXXX Windows APIs that you can use to record audio. (i.e. waveInOpen, waveInPrepareHeader, waveInAddBuffer, waveInStart...) These will record audio in 'raw' PCM format, which you can then put into a WAV file. (A WAV file can basically be just a RIFF file container that 'contains' the raw PCM audio).
Here is the MSDN reference page: Recording with a Waveform-Audio Device
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With