能够读取wav格式的音频文件
源代码在线查看: signal.h
// Signal.h: interface for the CSignal class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SIGNAL_H__5D1649F9_2E85_4E47_B71D_35F1AE8DE8A4__INCLUDED_)
#define AFX_SIGNAL_H__5D1649F9_2E85_4E47_B71D_35F1AE8DE8A4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CSignal
{
public:
int signalkind;
int bufferkind;
PBYTE m_pAfter;
WORD cbSize;
PBYTE m_pcurbuffer;
PBYTE m_pSavebuffer;
DWORD dwDatalength;
DWORD dwTotalDatalength;
WORD wBitsPerSample;
WORD nBlockAlign;
DWORD nAvgBytesPerSec;
DWORD nSamplesPerSec;
WORD nChannels;
WORD wFormatTag;
CSignal();
virtual ~CSignal();
};
#endif // !defined(AFX_SIGNAL_H__5D1649F9_2E85_4E47_B71D_35F1AE8DE8A4__INCLUDED_)