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

📄 taudioshared.h

📁 SoundMixer example application is compatible with Series 60 Developer Platform v1.0 and v2.0. It
💻 H
字号:
   /*
    *
============================================================================
    *  Name     : TAudioShared.h
    *  Part of  : SoundMixer
    *  Created  : 03/01/2003 by Forum Nokia
    *  Description:
    *     This is the project specification file for SoundMixer.
    *     Initial content was generated by Series 60 AppWizard.
    *
    *  Version  : 1.0.0
    *  Copyright: Forum Nokia
    *
============================================================================
    */

#ifndef __TAUDIOSHARED_H__
#define __TAUDIOSHARED_H__

// INCLUDES
#include <e32std.h>
#include "TSample.h"

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

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

// CLASS DECLARATION
/**
*	TAudioShared is internal type for sound mixer application.
*	This struct is used for inter-thread data trasfer and
*	communication
*/

class TAudioShared
	{
	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -