taudioshared.h

来自「手机游戏:Symbian S60俄罗斯方块(Tetris)的源代码」· C头文件 代码 · 共 46 行

H
46
字号
#ifndef __TAUDIOSHARED_H
#define __TAUDIOSHARED_H


#include "TSample.h"

#include <e32std.h>


const TInt KMaxChannels = 16;
const TInt KAudioShift	= 12;

enum TMixerCmd
{
	ECmdStartMixer = 0,
	ECmdStopMixer,
	ECmdDestroyMixer
};

class TAudioShared
{
// Data
public:
	/// for thread end signaling
	RSemaphore	iAliveMutex;

	/// for sample attribute change signaling
	RMutex	iMutex;

	/// pause flag
	TBool	iPaused;

	/// sample attributes
	TSample iSample[ KMaxChannels ];
	TInt	iVolume[ KMaxChannels ];
	TInt	iFrequency[ KMaxChannels ];
	TBool	iPlayStarted[ KMaxChannels ];

	/// main volume
	TInt	iMainVolume;

	/// Command parameter
	TMixerCmd	iCmd;
};

#endif

⌨️ 快捷键说明

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