00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef CLOUDNESS_H
00021 #define CLOUDNESS_H
00022
00023
00024
00025 #include <e32base.h>
00026 #include <AudioEffectBase.h>
00027 #include <LoudnessData.h>
00028 #include <MCustomInterface.h>
00029
00030 const TUid KUidLoudnessEffect = {0x10207AA8};
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 CLoudness : public CAudioEffect
00056 {
00057
00058 public:
00059
00066 IMPORT_C static CLoudness* NewL( CMdaAudioConvertUtility& aUtility );
00067
00075 IMPORT_C static CLoudness* NewL( CMdaAudioInputStream& aUtility , TBool aEnable = EFalse );
00076
00084 IMPORT_C static CLoudness* NewL( CMdaAudioOutputStream& aUtility , TBool aEnable = EFalse );
00085
00093 IMPORT_C static CLoudness* NewL( CMdaAudioPlayerUtility& aUtility , TBool aEnable = EFalse );
00094
00104 IMPORT_C static CLoudness* NewL( CMdaAudioRecorderUtility& aUtility, TBool aRecordStream, TBool aEnable = EFalse );
00105
00113 IMPORT_C static CLoudness* NewL( CMdaAudioToneUtility& aUtility , TBool aEnable = EFalse );
00114
00122 IMPORT_C static CLoudness* NewL( CMMFDevSound& aDevSound, TBool aEnable = EFalse );
00123
00131 IMPORT_C static CLoudness* NewL( CCustomCommandUtility* aUtility , TBool aEnable = EFalse );
00132
00140 IMPORT_C static CLoudness* NewL( MCustomInterface& aCustomInterface, TBool aEnable = EFalse );
00141
00149 IMPORT_C static CLoudness* NewL( CMidiClientUtility& aUtility , TBool aEnable = EFalse );
00150
00157 IMPORT_C static CLoudness* NewL( CDrmPlayerUtility& aUtility , TBool aEnable = EFalse);
00158
00165 IMPORT_C static CLoudness* NewL( CVideoPlayerUtility& aUtility , TBool aEnable = EFalse);
00166
00171 IMPORT_C virtual ~CLoudness();
00172
00173 public:
00174
00175
00176
00177
00178
00179
00180
00181 IMPORT_C TUid Uid() const;
00182
00183 protected:
00184
00191 IMPORT_C const TDesC8& DoEffectData();
00192
00200 IMPORT_C void SetEffectData( const TDesC8& aEffectDataBuffer );
00201
00202 protected:
00203
00210 IMPORT_C CLoudness();
00211
00212
00213 protected:
00214
00215
00216 TEfLoudnessData iLoudnessData;
00217
00218 TEfLoudnessDataPckg iDataPckgTo;
00219
00220 TEfLoudnessDataPckg iDataPckgFrom;
00221
00222 protected:
00223
00224 friend class CLoudnessMessageHandler;
00225
00226 };
00227
00228
00229 #endif
00230
00231