⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csoundmixer.h

📁 手机游戏:Symbian S60俄罗斯方块(Tetris)的源代码
💻 H
字号:
#ifndef __CSOUNDMIXER_H
#define __CSOUNDMIXER_H

#include "TSample.h"
#include "TAudioShared.h"

#include <E32Base.h>

class CSoundMixer : public CBase
{
// Construct and destruct
public:
	static CSoundMixer* NewL();
	~CSoundMixer();

private:
	CSoundMixer();
	void ConstructL();

/////////////////////////////////////////////////////////////////
// Other Method
public:
	void Pause();
	void Resume();
	void Play( const TSample& aSample, TInt aChannel, TInt aFrequency, TInt aVolume = 256 );
	void Stop( TInt aChannel );

	void SetVolume(TInt aVolume);
	TInt Volume();
private:
	void SendCmd(TMixerCmd aCmd);

////////////////////////////////////////////////////////////////
// Data
private:
	TAudioShared		iShared;		// shared data with mixer thread
	RThread				iMixerThread;	// handle to mixer thread
	TSample				iEmptySample;	// empty sample, used to stop channel
	TBool				iPaused;
};
#endif

⌨️ 快捷键说明

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