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