Update contrib.
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 #include "cdevgencontrol.h"
20 #include <a3f/maudiocontext.h>
21 #include <a3f/audioprocessingunittypeuids.h>
22 #include <a3f/mbuffersource.h>
23 #include <a3f/maudiocodec.h>
24 #include <a3f/maudiogaincontrol.h>
27 // ======== LOCAL FUNCTIONS ========
29 // ======== MEMBER FUNCTIONS ========
31 // ---------------------------------------------------------------------------
32 // Default constructor
33 // ---------------------------------------------------------------------------
35 CDevGenControl::CDevGenControl()
38 DP_CONTEXT(CDevGenControl::CDevGenControl *CD1*, CtxDevSound, DPLOCAL);
44 // -----------------------------------------------------------------------------
45 // Symbian 2nd phase constructor
46 // -----------------------------------------------------------------------------
48 void CDevGenControl::ConstructL(CDevAudio* aDevAudio, MDevSoundAdaptationObserver& aDevSoundObserver)
50 DP_CONTEXT(CDevGenControl::ConstructL *CD1*, CtxDevSound, DPLOCAL);
52 CDevAudioControl::ConstructL(aDevAudio, aDevSoundObserver);
56 // -----------------------------------------------------------------------------
57 // Symbian constructor
58 // -----------------------------------------------------------------------------
60 CDevGenControl* CDevGenControl::NewL(CDevAudio* aDevAudio, MDevSoundAdaptationObserver& aDevSoundObserver)
62 DP_STATIC_CONTEXT(CDevGenControl::NewL *CD0*, CtxDevSound, DPLOCAL);
64 CDevGenControl* self = new (ELeave) CDevGenControl();
65 CleanupStack::PushL(self);
66 self->ConstructL(aDevAudio, aDevSoundObserver);
67 CleanupStack::Pop(self);
68 DP0_RET(self, "0x%x");
71 // ---------------------------------------------------------------------------
73 // ---------------------------------------------------------------------------
75 CDevGenControl::~CDevGenControl()
77 DP_CONTEXT(CDevGenControl::~CDevGenControl *CD1*, CtxDevSound, DPLOCAL);