📄 audiorecorderengine.h
字号:
/*
* ============================================================================
* Name : CAudioRecorderEngine from AudioRecorderEngine.h
* Part of : AudioRecorder
* Created : 31.01.2006 by ToBeReplacedByAuthor
* Description:
* Declares engine for application.
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
#ifndef AUDIORECORDERENGINE_H
#define AUDIORECORDERENGINE_H
// INCLUDES
#include <e32base.h>
#include <mdaaudiosampleeditor.h>
// CONSTANTS
// FORWARD DECLARATIONS
// CLASS DECLARATION
/**
* CAudioRecorderEngine application class.
*/
class CAudioRecorderEngine : public CBase, public MMdaObjectStateChangeObserver
{
public: // Observer interface
class MObserver
{
public:
virtual void OnComplete(TInt aError) = 0;
};
public: // Constructors and destructor
/**
* Two-phased constructor.
*/
static CAudioRecorderEngine* NewL(MObserver& aObserver);
/**
* Destructor.
*/
virtual ~CAudioRecorderEngine();
public: // Functions from base classes
public: // Functions from MMdaObjectStateChangeObserver
void MoscoStateChangeEvent(CBase* aObject, TInt aPreviousState,
TInt aCurrentState, TInt aError);
public: // New functions
void RecordL(const TFileName& aFileName);
void Stop();
protected: // New functions
protected: // Functions from base classes
private:
/**
* EPOC default constructor.
*/
CAudioRecorderEngine(MObserver& aObserver);
void ConstructL();
private: // member variables
MObserver& iObserver;
CMdaAudioRecorderUtility* iAudioRecorder;
// audio recording settings
TMdaFileClipLocation iLocation;
TMdaAudioDataSettings iSettings;
TMdaWavClipFormat iFormat;
TMdaPcmWavCodec iCodec;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -