soundbase.h

来自「AVI这个软件是用VC编写的」· C头文件 代码 · 共 39 行

H
39
字号
// SoundBase.h: interface for the CSoundBase class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SOUNDBASE_H__041D24CC_3A2F_4E33_AAB9_6C98297DAC59__INCLUDED_)
#define AFX_SOUNDBASE_H__041D24CC_3A2F_4E33_AAB9_6C98297DAC59__INCLUDED_

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

#include <mmsystem.h>
#include "buffer.h"

class CSoundBase  
{
public:
	WAVEFORMATEX* GetFormat();
	int GetBufferSize();
	void SetBufferSize(int NumberOfSamples);
	int GetNumberOfChannels();
	void SetNumberOfChannels(int nchan);
	int GetSamplesPerSecond();
	void SetSamplesPerSecond(int sps);
	int GetBitsPerSample();
	void SetBitsPerSample(int bps);
	CSoundBase();
	virtual ~CSoundBase();

protected:
	WAVEFORMATEX m_Format;
	int			 m_BufferSize;	// number of samples

private:
	void Update();
};

#endif // !defined(AFX_SOUNDBASE_H__041D24CC_3A2F_4E33_AAB9_6C98297DAC59__INCLUDED_)

⌨️ 快捷键说明

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