mmhais/refacladapt/src/audiosource/audiodevicesource.cpp
author hgs
Wed, 13 Oct 2010 12:08:48 +0100
changeset 3 28bdc4aca325
parent 0 79dd3e2336a0
permissions -rw-r--r--
2010wk42_01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
     1
//audiodevicesource.cpp
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
     2
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
     3
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
     4
// All rights reserved.
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
     5
// This component and the accompanying materials are made available
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
     6
// under the terms of "Eclipse Public License v1.0"
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
     7
// which accompanies this distribution, and is available
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
     8
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
     9
//
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    10
// Initial Contributors:
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    11
// Nokia Corporation - initial contribution.
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    12
//
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    13
// Contributors:
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    14
//
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    15
// Description:
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    16
//
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    17
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    18
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    19
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    20
#include "audiodevicesource.h"
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    21
#include <a3f/audioprocessingunittypeuids.h>
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    22
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    23
// ---------------------------------------------------------------------------
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    24
// Constructor
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    25
// ---------------------------------------------------------------------------
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    26
//
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    27
CAudioDeviceSource::CAudioDeviceSource()
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    28
	{
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    29
	TRACE_CREATE();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    30
	DP_CONTEXT(CAudioDeviceSource::CAudioDeviceSource, CtxDevSound, DPLOCAL);
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    31
	DP_IN();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    32
	DP_OUT();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    33
	}
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    34
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    35
// ---------------------------------------------------------------------------
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    36
// Factory method
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    37
// ---------------------------------------------------------------------------
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    38
//
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    39
EXPORT_C CAudioDeviceSource* CAudioDeviceSource::NewL()
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    40
	{
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    41
	DP_STATIC_CONTEXT(CAudioDeviceSource::NewL, CtxDevSound, DPLOCAL);
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    42
	DP_IN();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    43
	CAudioDeviceSource* self = new(ELeave)CAudioDeviceSource();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    44
	CleanupStack::PushL(self);
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    45
	self->ConstructL();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    46
	CleanupStack::Pop(self);
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    47
	DP0_RET(self, "%x");
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    48
	}
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    49
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    50
// ---------------------------------------------------------------------------
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    51
// Second phase constructor
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    52
// ---------------------------------------------------------------------------
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    53
//
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    54
void CAudioDeviceSource::ConstructL()
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    55
	{
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    56
	DP_CONTEXT(CAudioDeviceSource::ConstructL, CtxDevSound, DPLOCAL);
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    57
	DP_IN();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    58
	DP_OUT();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    59
	}
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    60
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    61
// ---------------------------------------------------------------------------
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    62
// Destructor
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    63
// ---------------------------------------------------------------------------
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    64
//
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    65
CAudioDeviceSource::~CAudioDeviceSource()
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    66
	{
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    67
	DP_CONTEXT(CAudioDeviceSource::~CAudioDeviceSource, CtxDevSound, DPLOCAL);
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    68
	DP_IN();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    69
	DP_OUT();
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    70
	}
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    71
79dd3e2336a0 2010wk36_01
hgs
parents:
diff changeset
    72
// end of file