audiostubs/devsoundextensions_stubs/audioeffectscistubs/stereowideningcistub/src/StereoWideningCIStub.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audiostubs/devsoundextensions_stubs/audioeffectscistubs/stereowideningcistub/src/StereoWideningCIStub.cpp Thu Jan 14 07:14:53 2010 +0200
@@ -0,0 +1,82 @@
+/*
+* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Audio Stubs - Implementation of the StereoWidening effect Custom Interface class
+*
+*/
+
+
+#ifdef _DEBUG
+#include <e32svr.h>
+#endif
+#include "StereoWideningCI.h"
+
+
+EXPORT_C CStereoWideningCI* CStereoWideningCI::NewL(
+ CMMFDevSound& aDevSound )
+ {
+ CStereoWideningCI* self = new(ELeave) CStereoWideningCI(aDevSound);
+ return self;
+ }
+
+CStereoWideningCI::CStereoWideningCI(
+ CMMFDevSound& aDevSound )
+ : iDevSound(&aDevSound )
+ {
+ iStereoWideningData.iLevel = 20; // Initial value
+ iStereoWideningData.iContinuousLevelSupported = EFalse; // Initial value
+ }
+
+EXPORT_C CStereoWideningCI* CStereoWideningCI::NewL()
+ {
+ CStereoWideningCI* self = new(ELeave) CStereoWideningCI();
+ return self;
+ }
+
+CStereoWideningCI::CStereoWideningCI()
+ {
+ iStereoWideningData.iLevel = 20; // Initial value
+ iStereoWideningData.iContinuousLevelSupported = EFalse; // Initial value
+ }
+
+CStereoWideningCI::~CStereoWideningCI()
+ {
+ }
+
+void CStereoWideningCI::ApplyL()
+ {
+#ifdef _DEBUG
+ RDebug::Print(_L("CStereoWideningCI::ApplyL"));
+#endif
+
+ if (iObservers.Count() > 0)
+ {
+ if(iStereoWideningData.iEnabled)
+ {
+ iEnabled = iStereoWideningData.iEnabled;
+ iObservers[0]->EffectChanged(this, (TUint8)MAudioEffectObserver::KEnabled);
+ }
+ else
+ {
+ iEnabled = iStereoWideningData.iEnabled;
+ iObservers[0]->EffectChanged(this, (TUint8)MAudioEffectObserver::KDisabled);
+ }
+
+ }
+ }
+
+
+// ========================== OTHER EXPORTED FUNCTIONS =========================
+
+
+// End of File