00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef BASSBOOSTBASE_H
00021 #define BASSBOOSTBASE_H
00022
00023
00024
00025 #include <e32base.h>
00026 #include <AudioEffectBase.h>
00027 #include <BassBoostData.h>
00028 #include <MCustomInterface.h>
00029
00030 const TUid KUidBassBoostEffect = {0x10203827};
00031
00032
00033 class CMdaAudioConvertUtility;
00034 class CMdaAudioPlayerUtility;
00035 class CMdaAudioRecorderUtility;
00036 class CMdaAudioInputStream;
00037 class CMdaAudioOutputStream;
00038 class CMdaAudioToneUtility;
00039 class CCustomCommandUtility;
00040 class CCustomInterfaceUtility;
00041 class CMMFDevSound;
00042 class CMidiClientUtility;
00043 class CDrmPlayerUtility;
00044 class CVideoPlayerUtility;
00045
00046
00047
00055 class CBassBoost : public CAudioEffect
00056 {
00057
00058 public:
00059
00067 IMPORT_C static CBassBoost* NewL( CMMFDevSound& aDevSound, TBool aEnable = EFalse );
00068
00076 IMPORT_C static CBassBoost* NewL( CMdaAudioConvertUtility& aUtility, TBool aEnable = EFalse );
00077
00085 IMPORT_C static CBassBoost* NewL( CMdaAudioInputStream& aUtility, TBool aEnable = EFalse );
00086
00094 IMPORT_C static CBassBoost* NewL( CMdaAudioOutputStream& aUtility, TBool aEnable = EFalse );
00095
00103 IMPORT_C static CBassBoost* NewL( CMdaAudioPlayerUtility& aUtility, TBool aEnable = EFalse );
00104
00114 IMPORT_C static CBassBoost* NewL( CMdaAudioRecorderUtility& aUtility, TBool aRecordStream, TBool aEnable = EFalse );
00115
00123 IMPORT_C static CBassBoost* NewL( CMdaAudioToneUtility& aUtility, TBool aEnable = EFalse );
00124
00132 IMPORT_C static CBassBoost* NewL( CCustomCommandUtility* aUtility, TBool aEnable = EFalse );
00133
00141 IMPORT_C static CBassBoost* NewL( MCustomInterface& aCustomInterface, TBool aEnable = EFalse );
00142
00150 IMPORT_C static CBassBoost* NewL( CMidiClientUtility& aUtility, TBool aEnable = EFalse );
00151
00158 IMPORT_C static CBassBoost* NewL( CDrmPlayerUtility& aUtility, TBool aEnable = EFalse );
00159
00166 IMPORT_C static CBassBoost* NewL( CVideoPlayerUtility& aUtility, TBool aEnable = EFalse );
00167
00172 IMPORT_C virtual ~CBassBoost();
00173
00174 public:
00175
00176
00177
00178
00179
00180
00181
00182 IMPORT_C TUid Uid() const;
00183
00184 protected:
00185
00192 IMPORT_C const TDesC8& DoEffectData();
00193
00201 IMPORT_C void SetEffectData( const TDesC8& aEffectDataBuffer );
00202
00203 protected:
00204
00211 IMPORT_C CBassBoost();
00212
00213 protected:
00214
00215
00216 TEfBassBoostData iBassBoostData;
00217
00218 TEfBassBoostDataPckg iDataPckgTo;
00219
00220 TEfBassBoostDataPckg iDataPckgFrom;
00221
00222 protected:
00223
00224 friend class CBassBoostMessageHandler;
00225 };
00226
00227
00228 #endif
00229
00230