wave 文件比较简单,解析程序 用mmio开头的函数解析的。
#include <mmsystem.h>
void CTest1Dlg::OnBtnwave()
{
HMMIO hmmio = mmioOpen((LPSTR)m_mciSaveParm.lpfilename, NULL, MMIO_READ);
if (!hmmio)
{
return;
}
UINT ChunkID;
if ( sizeof(UINT) != mmioRead(hmmio, (HPSTR)&ChunkID, sizeof(UINT)))
{
return;
}
if (ChunkID != ('R' | ('I' << 8) | ('F' << 16) | ('F' << 24)))
{