Wave APIs

Here is the list of all the Wave APIs that used for recording and playing audio in windows simply:

The APIs are given by calling steps, refer MSDN for the detail.

Recording

waveInOpen Open the Wave device for recording.
waveInPrepareHeader Prepare the Wave header for recording.
waveInAddBuffer Add buffer
waveInStart Start recording. Recorded data will be saved in a specified buffer.
waveInUnprepareHeader After finishing the record process, should un-prepare Wave header.
waveInClose Close the recording device.

Playing

waveOutOpen Open the Wave device for playing.
waveOutPrepareHeader Prepare the Wave header for playing.
waveOutWrite Play the buffer.
waveOutUnprepareHeader Un-prepare the Wave header.
waveOutClose Close the playing device.

The most important tech on using there Api is the buffer and buffer size.

發佈了43 篇原創文章 · 獲贊 1 · 訪問量 14萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章