wave.h

来自「游戏编程精粹2第六章源码」· C头文件 代码 · 共 47 行

H
47
字号
/* Copyright (C) Ian Lewis, 2001. 
 * All rights reserved worldwide.
 *
 * This software is provided "as is" without express or implied
 * warranties. You may freely copy and compile this source into
 * applications you distribute provided that the copyright text
 * below is included in the resulting source code, for example:
 * "Portions Copyright (C) Ian Lewis, 2001"
 */
// Wave.h: interface for the CWave class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WAVE_H__21041404_44A1_4191_BDBA_F89B0162F060__INCLUDED_)
#define AFX_WAVE_H__21041404_44A1_4191_BDBA_F89B0162F060__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "WaveDesc.h"

/*
Wave
The basic building block of the audio
infrastructure. Contains raw audio data
whose structure is defined by the
CWaveDesc member.
*/

class CWave  
{
protected:
	CWaveDesc description;//describes the structure of the wave data

	BYTE* data;
public:
	CWave();
	virtual ~CWave();

	//access functions
	const CWaveDesc& getDescription() const {return description;}
	BYTE* getData(){return data;}
};

#endif // !defined(AFX_WAVE_H__21041404_44A1_4191_BDBA_F89B0162F060__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?