Reputation: 42543
How to record wav sound from mic using Windows API?
Upvotes: 3
Views: 4695
Reputation: 864
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
Upvotes: 4
Reputation:
See all the MSDN samples (WSDK) doing exactly that, always the only reliable samples, of course
Upvotes: 0