TAudioShared.h
上传用户:snevogroup
上传日期:2008-06-06
资源大小:432k
文件大小:1k
- #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