结构体
1 | WAVEFORMATEX |
2 | WAVEFORMAT |
3 | PCMWAVEFORMAT |
4 | WAVEHDR |
5 | WAVEINCAPS |
6 | WAVEOUTCAPS |
7 | MMCKINFO |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 |
录音输入函数:
1 | waveInPrepareHeader |
2 | waveInUnprepareHeader(HWAVEIN hwi, LPWAVEHDR pwh, UINT cbwh); |
3 | waveInOpen(LPHWAVEIN phwi, UINT uDeviceID,LPCWAVEFORMATEX pwfx, DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen); |
4 | waveInClose(HWAVEIN hwi); |
5 | waveInAddBuffer(HWAVEIN hwi, LPWAVEHDR pwh, UINT cbwh); |
6 | waveInStart(HWAVEIN hwi); |
7 | waveInStop(HWAVEIN hwi); |
8 | waveInReset(HWAVEIN hwi); |
9 | waveInGetPosition(HWAVEIN hwi, LPMMTIME pmmt, UINT cbmmt); |
10 | waveInGetID(HWAVEIN hwi, LPUINT puDeviceID); |
11 | #ifdef _WIN32 WINMMAPI MMRESULT WINAPI waveInMessage(HWAVEIN hwi, UINT uMsg, DWORD dw1, DWORD dw2); #else DWORD WINAPI waveInMessage(HWAVEIN hwi, UINT uMsg, DWORD dw1, DWORD dw2); #endif |
12 | MMRESULT WINAPI waveInGetDevCaps(UINT uDeviceID, LPWAVEINCAPS pwic, UINT cbwic); |
13 | MMRESULT WINAPI waveInGetErrorText(MMRESULT mmrError, LPSTR pszText, UINT cchText); |
14 | WINMMAPI UINT WINAPI waveInGetNumDevs(void); |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 |
播放输出函数:
1 | |
2 | waveOutOpen(LPHWAVEOUT phwo, UINT uDeviceID... ..., DWORD fdwOpen); |
3 | waveOutPrepareHeader(HWAVEOUT hwo, LPWAVEHDR pwh, UINT cbwh); |
4 | waveOutUnprepareHeader(HWAVEOUT hwo, LPWAVEHDR pwh, UINT cbwh); |
5 | waveOutWrite(HWAVEOUT hwo, LPWAVEHDR pwh, UINT cbwh); |
6 | waveOutPause(HWAVEOUT hwo); |
7 | waveOutRestart(HWAVEOUT hwo); |
8 | waveOutReset(HWAVEOUT hwo); |
9 | waveOutBreakLoop(HWAVEOUT hwo); |
10 | waveOutGetPosition(HWAVEOUT hwo, LPMMTIME pmmt, UINT cbmmt); |
11 | waveOutGetPitch(HWAVEOUT hwo, LPDWORD pdwPitch); |
12 | waveOutSetPitch(HWAVEOUT hwo, DWORD dwPitch); |
13 | waveOutGetPlaybackRate(HWAVEOUT hwo, LPDWORD pdwRate); |
14 | waveOutSetPlaybackRate(HWAVEOUT hwo, DWORD dwRate); |
15 | waveOutGetID(HWAVEOUT hwo, LPUINT puDeviceID); |
16 | |
17 | waveOutClose(HWAVEOUT hwo); |
18 | waveOutGetErrorText |
19 | waveOutGetVolume |
20 | waveOutGetDevCaps |
21 | waveOutGetNumDevs |
22 | waveOutMessage |
23 | waveOutProc |
24 | |
25 |
mmioxxx系列函数:
1 | mmioAdvance |
2 | mmioAscend |
3 | mmioClose |
4 | mmioCreateChunk |
5 | mmioDescend |
6 | mmioFlush |
7 | mmioGetInfo |
8 | mmioInstallIOProc |
9 | mmioOpen |
10 | MMIOProc |
11 | mmioRead |
12 | mmioRename |
13 | mmioSeek |
14 | mmioSendMessage |
15 | mmioSetBuffer |
16 | mmioSetInfo |
17 | mmioStringToFOURCC |
18 | mmioWrite |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 |
例子:
1 | 用VC自己动手做个录音机 |
2 | 灰鸽子有个功能就是语音控制/木马编程之语音控制 |
3 | 语音邮件控件的实现 |
4 | 基于WaveX低级音频函数的实时语音通信 |
5 | 使用waveOut接口在Windows中播放声音 |
6 | 在VC6.0下自制多媒体播放器 |
7 | 多媒体文件I/O |
8 | 亲测写一个RIFF文件的开头 |
9 | 经典例子的测试与详细分析精解,细化到每一句每一个变量 |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 |