1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/Effect/src/MmfStdGlblAudioEffect.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,72 @@
1.4 +
1.5 +// MmfStdGlblAudioEffect.cpp
1.6 +
1.7 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.8 +// All rights reserved.
1.9 +// This component and the accompanying materials are made available
1.10 +// under the terms of "Eclipse Public License v1.0"
1.11 +// which accompanies this distribution, and is available
1.12 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.13 +//
1.14 +// Initial Contributors:
1.15 +// Nokia Corporation - initial contribution.
1.16 +//
1.17 +// Contributors:
1.18 +//
1.19 +// Description:
1.20 +//
1.21 +
1.22 +#include <mmfstdglblaudioeffect.h>
1.23 +#include <mmf/plugin/mmfglblaudioeffect.hrh>
1.24 +
1.25 +// Define standard UIDs
1.26 +
1.27 +// const TUid KUidMmfGlblVolumePlugin = {KUidMmfGlblVolumePluginDefine};
1.28 +const TUid KUidMmfGlblEqPlugin = {KUidMmfGlblEqPluginDefine};
1.29 +const TUid KUidMmfGlblBoostPlugin = {KUidMmfGlblBoostPluginDefine};
1.30 +
1.31 +//
1.32 +// CMmfGlobalEqEffect
1.33 +//
1.34 +
1.35 +EXPORT_C CMmfGlobalEqEffect* CMmfGlobalEqEffect::NewL(MMmfGlobalAudioEffectObserver* aObserver)
1.36 + {
1.37 + CMmfGlobalEqEffect* self = new (ELeave) CMmfGlobalEqEffect;
1.38 + CleanupStack::PushL(self);
1.39 + self->ConstructL(aObserver);
1.40 + CleanupStack::Pop(self);
1.41 + return self;
1.42 + }
1.43 +
1.44 +CMmfGlobalEqEffect::CMmfGlobalEqEffect()
1.45 + {
1.46 + // empty constructor
1.47 + }
1.48 +
1.49 +void CMmfGlobalEqEffect::ConstructL(MMmfGlobalAudioEffectObserver* aObserver)
1.50 + {
1.51 + BaseConstructL(KUidMmfGlblEqPlugin, aObserver);
1.52 + }
1.53 +
1.54 +//
1.55 +// CMmfGlobalMegaEffect
1.56 +//
1.57 +
1.58 +EXPORT_C CMmfGlobalMegaEffect* CMmfGlobalMegaEffect::NewL(MMmfGlobalAudioEffectObserver* aObserver)
1.59 + {
1.60 + CMmfGlobalMegaEffect* self = new (ELeave) CMmfGlobalMegaEffect;
1.61 + CleanupStack::PushL(self);
1.62 + self->ConstructL(aObserver);
1.63 + CleanupStack::Pop(self);
1.64 + return self;
1.65 + }
1.66 +
1.67 +CMmfGlobalMegaEffect::CMmfGlobalMegaEffect()
1.68 + {
1.69 + // empty constructor
1.70 + }
1.71 +
1.72 +void CMmfGlobalMegaEffect::ConstructL(MMmfGlobalAudioEffectObserver* aObserver)
1.73 + {
1.74 + BaseConstructL(KUidMmfGlblBoostPlugin, aObserver);
1.75 + }