手机游戏:Symbian S60俄罗斯方块(Tetris)的源代码

源代码在线查看: taudioshared.h

软件大小: 433 K
上传用户: zm250063191
关键词: Symbian Tetris S60 手机游戏
下载地址: 免注册下载 普通下载 VIP

相关代码

				#ifndef __TAUDIOSHARED_H
				#define __TAUDIOSHARED_H
				
				
				#include "TSample.h"
				
				#include 
				
				
				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			

相关资源