sl@0
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
|
sl@0
|
17 |
|
sl@0
|
18 |
#include <ecom/implementationproxy.h> // For making it ECom plugin
|
sl@0
|
19 |
#include <a3f/mbuffersource.h>
|
sl@0
|
20 |
|
sl@0
|
21 |
#include "logicalaudiodevicesource.h"
|
sl@0
|
22 |
|
sl@0
|
23 |
#include <a3f/audioprocessingunittypeuids.h>
|
sl@0
|
24 |
|
sl@0
|
25 |
|
sl@0
|
26 |
// ======== LOCAL FUNCTIONS ========
|
sl@0
|
27 |
// __________________________________________________________________________
|
sl@0
|
28 |
// Exported proxy for instantiation method resolution
|
sl@0
|
29 |
// Define the interface UIDs
|
sl@0
|
30 |
|
sl@0
|
31 |
const TImplementationProxy ImplementationTable[] =
|
sl@0
|
32 |
{
|
sl@0
|
33 |
IMPLEMENTATION_PROXY_ENTRY(KAudioDeviceSourceUid, CLogicalAudioDeviceSource::NewL), //KUidAudioDeviceSource
|
sl@0
|
34 |
};
|
sl@0
|
35 |
|
sl@0
|
36 |
EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
|
sl@0
|
37 |
{
|
sl@0
|
38 |
aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
|
sl@0
|
39 |
return ImplementationTable;
|
sl@0
|
40 |
}
|
sl@0
|
41 |
|
sl@0
|
42 |
// ---------------------------------------------------------------------------
|
sl@0
|
43 |
// Constructor
|
sl@0
|
44 |
// ---------------------------------------------------------------------------
|
sl@0
|
45 |
CLogicalAudioDeviceSource::CLogicalAudioDeviceSource(TAny* aParam) : CAudioProcessingUnit(aParam)
|
sl@0
|
46 |
{
|
sl@0
|
47 |
TRACE_CREATE();
|
sl@0
|
48 |
DP_CONTEXT(CLogicalAudioDeviceSource::CLogicalAudioDeviceSource *CD1*, CtxDevSound, DPLOCAL);
|
sl@0
|
49 |
DP_IN();
|
sl@0
|
50 |
DP_OUT();
|
sl@0
|
51 |
}
|
sl@0
|
52 |
|
sl@0
|
53 |
// ---------------------------------------------------------------------------
|
sl@0
|
54 |
// Factory method
|
sl@0
|
55 |
// ---------------------------------------------------------------------------
|
sl@0
|
56 |
CLogicalAudioDeviceSource* CLogicalAudioDeviceSource::NewL(TAny* aParam)
|
sl@0
|
57 |
{
|
sl@0
|
58 |
DP_STATIC_CONTEXT(CLogicalAudioDeviceSource::NewL *CD0*, CtxDevSound, DPLOCAL);
|
sl@0
|
59 |
DP_IN();
|
sl@0
|
60 |
CLogicalAudioDeviceSource* self = new(ELeave)CLogicalAudioDeviceSource(aParam);
|
sl@0
|
61 |
CleanupStack::PushL(self);
|
sl@0
|
62 |
self->ConstructL();
|
sl@0
|
63 |
CleanupStack::Pop(self);
|
sl@0
|
64 |
DP0_RET(self, "0x%x");
|
sl@0
|
65 |
}
|
sl@0
|
66 |
|
sl@0
|
67 |
// ---------------------------------------------------------------------------
|
sl@0
|
68 |
// Second phase constructor
|
sl@0
|
69 |
// ---------------------------------------------------------------------------
|
sl@0
|
70 |
void CLogicalAudioDeviceSource::ConstructL()
|
sl@0
|
71 |
{
|
sl@0
|
72 |
DP_CONTEXT(CLogicalAudioDeviceSource::ConstructL *CD1*, CtxDevSound, DPLOCAL);
|
sl@0
|
73 |
DP_IN();
|
sl@0
|
74 |
DP_OUT();
|
sl@0
|
75 |
}
|
sl@0
|
76 |
|
sl@0
|
77 |
// ---------------------------------------------------------------------------
|
sl@0
|
78 |
// Destructor
|
sl@0
|
79 |
// ---------------------------------------------------------------------------
|
sl@0
|
80 |
CLogicalAudioDeviceSource::~CLogicalAudioDeviceSource()
|
sl@0
|
81 |
{
|
sl@0
|
82 |
DP_CONTEXT(CLogicalAudioDeviceSource::~CLogicalAudioDeviceSource *CD1*, CtxDevSound, DPLOCAL);
|
sl@0
|
83 |
DP_IN();
|
sl@0
|
84 |
DP_OUT();
|
sl@0
|
85 |
}
|
sl@0
|
86 |
|
sl@0
|
87 |
TBool CLogicalAudioDeviceSource::IsTypeOf(TUid aTypeId) const
|
sl@0
|
88 |
{
|
sl@0
|
89 |
DP_CONTEXT(CLogicalAudioDeviceSource::IsTypeOf *CD1*, CtxDevSound, DPLOCAL);
|
sl@0
|
90 |
DP_IN();
|
sl@0
|
91 |
TBool result = EFalse;
|
sl@0
|
92 |
if (iType == aTypeId)
|
sl@0
|
93 |
{
|
sl@0
|
94 |
result = ETrue;
|
sl@0
|
95 |
}
|
sl@0
|
96 |
DP0_RET(result, "%d");
|
sl@0
|
97 |
}
|
sl@0
|
98 |
|
sl@0
|
99 |
// end of file
|