wave文件格式

如果wave文件用c/c++的结构体来表示的话,可以用:

typedef struct _WAVEFILEHEADER
{
    DWORD dwRIFFFlag;
    DWORD dwFileSize;
    DWORD dwWAVEFlag;
    DWORD dwfmtFlag;
    DWORD dwUndefined;
    short nDataFormat;
    short nChannel;
    DWORD dwSampleFrequency;
    DWORD dwDataTransmitRate;
    short nDataBlockSize;
    short nSampleBitCount;
    DWORD dwDataFlag;
    DWORD dwDataSize;
}WAVEFILEHEADER, *PWAVEFILEHEADER;

来表示。

    DWORD dwRIFFFlag;

“RIFF” ,占4个字节。

    DWORD dwFileSize;

    DWORD dwWAVEFlag;

    DWORD dwfmtFlag;

    DWORD dwUndefined;

    short nDataFormat;

    short nChannel;

    DWORD dwSampleFrequency;

    DWORD dwDataTransmitRate;

    short nDataBlockSize;

    short nSampleBitCount;

    DWORD dwDataFlag;

    DWORD dwDataSize;

可参考:

https://ccrma.stanford.edu/courses/422/projects/WaveFormat/

http://www-mmsp.ece.mcgill.ca/documents/audioformats/wave/wave.html

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

Leave a Reply

Your email address will not be published. Required fields are marked *