【正文】
g int bitpersamples=1626H 4 char fact char wave_fact=fact2AH 8 char 0400000076280400H定 char temp32H 4 char data char wave_data=data36H 4 long int 采樣數(shù)據(jù)字節(jié)數(shù) lont int size2=文長(zhǎng)59表7 CELP語(yǔ)音編碼后的WAVE文件頭格式表(共58字節(jié))偏移地址 字節(jié)數(shù) 數(shù)據(jù)類(lèi)型 內(nèi)容 文件頭定義為00H 4 char RIFF char riff_id[4]=RIFF04H 4 long int 文件總長(zhǎng)8 long int size0=文總長(zhǎng)808H 8 char WAVEfmt char wave_fmt[8]10H 4 long int 12000000H(CELP) long int size1=0x1214H 2 int 70 00H int fmttag=0x7016H 2 int 聲道數(shù) int channel=1 或218H 4 long int 采樣率 long int samplespersec1CH 4 long int 每秒播放字節(jié)數(shù) long int bytepersec20H 2 int 采樣一次占字節(jié)數(shù) int blockalign=0x0C22H 4 long int 量化數(shù) long int bitpersamples=1626H 4 char fact char wave_fact=fact2AH 8 char 0400000060520700H定 char temp32H 4 char data char wave_data=data36H 4 long int 采樣數(shù)據(jù)字節(jié)數(shù) lont int size2=文長(zhǎng)58WAVEFORMATEX typedef struct{WORD wFormatTag。 WORD nChannels。 DWORD nAvgBytesPerSec。 WORD wBitsPerSample。 } WAVEFORMATEX。WAVEHDR typedef struct { LPSTR lpData。 DWORD dwBytesRecorded。 DWORD dwFlags。 struct wavehdr_tag * lpNext。 } WAVEHDR。