程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫

Wave APIs

編輯:.NET實例教程

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.



  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved