myplayer.h
来自「symbian os s60 3rd音频播放器」· C头文件 代码 · 共 42 行
H
42 行
#ifndef MYPLAYER_H_
#define MYPLAYER_H_
#include <MdaAudioSamplePlayer.h>
#include <mda\common\audio.h>
#include <mmf\common\mmfutilities.h>
enum TMyState
{
EInitialising,
EPlaying,
EPrepared
};
class CMdaAudioPlayerUtility;
class CAudioPlayerAppView;
class CCoeControl;
class CMyPlayer : public CBase, public MMdaAudioPlayerCallback
{
public:
void CreatePlayerL(const TDesC& aFileName);
void PlaySound();
void StopSound();
void PauseSound();
void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aTrailingSilence);
void MapcPlayComplete(TInt aError);
void SetContainer(CCoeControl* aContainer);
~CMyPlayer();
private:
CMdaAudioPlayerUtility* iPlayer;
TMyState iState;
CAudioPlayerAppView* iContainer;
};
#endif /*MYPLAYER_H_*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?