自己写一个这样的程序,比求人要快,给你一个我自己写的解析wave头的结构,后面的就是pcm数据了
//wave file head struct
#pragma pack (2)
typedef struct waveHeader
{
int RIFF;
unsigned int fileLength;//8 bytes
int WAVE;
int fmt;
int WAVEFORMAT;//12 bytes
short PCM;
unsigned short channels;
unsigned int sampleRate;
unsigned int byteRate;
unsigned short byteNum;
unsigned short bitNum;
unsigned short reserved;//18 bytes
int fact;
int constNum4;
unsigned int dataLengthB;//12 bytes
int data;
unsigned int dataLength;//8 bytes
}*pWaveHeader;