|
1 //audiocontextfactory.cpp |
|
2 |
|
3 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 // All rights reserved. |
|
5 // This component and the accompanying materials are made available |
|
6 // under the terms of "Eclipse Public License v1.0" |
|
7 // which accompanies this distribution, and is available |
|
8 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 // |
|
10 // Initial Contributors: |
|
11 // Nokia Corporation - initial contribution. |
|
12 // |
|
13 // Contributors: |
|
14 // |
|
15 // Description: |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 #include <a3f/audiocontextfactory.h> |
|
21 |
|
22 #include "audiocontext.h" |
|
23 |
|
24 |
|
25 CAudioContextFactory::CAudioContextFactory() |
|
26 { |
|
27 } |
|
28 |
|
29 EXPORT_C CAudioContextFactory* CAudioContextFactory::NewL() |
|
30 { |
|
31 DP_STATIC_CONTEXT(CAudioContextFactory::NewL *CD0*, CtxDevSound, DPLOCAL); |
|
32 DP_IN(); |
|
33 CAudioContextFactory* self = new(ELeave) CAudioContextFactory(); |
|
34 CleanupStack::PushL(self); |
|
35 self->ConstructL(); |
|
36 CleanupStack::Pop(self); |
|
37 DP0_RET(self, "0x%x"); |
|
38 } |
|
39 |
|
40 void CAudioContextFactory::ConstructL() |
|
41 { |
|
42 DP_CONTEXT(CAudioContextFactory::ConstructL *CD1*, CtxDevSound, DPLOCAL); |
|
43 DP_IN(); |
|
44 DP_OUT(); |
|
45 } |
|
46 |
|
47 EXPORT_C CAudioContextFactory::~CAudioContextFactory() |
|
48 { |
|
49 DP_CONTEXT(CAudioContextFactory::~CAudioContextFactory *CD1*, CtxDevSound, DPLOCAL); |
|
50 DP_IN(); |
|
51 DP_OUT(); |
|
52 } |
|
53 |
|
54 EXPORT_C TInt CAudioContextFactory::CreateAudioContext(MAudioContext*& aContext) |
|
55 { |
|
56 DP_CONTEXT(CAudioContextFactory::CreateAudioContext *CD1*, CtxDevSound, DPLOCAL); |
|
57 DP_IN(); |
|
58 DP_OUT(); |
|
59 TRAPD(err,aContext = CAudioContext::NewL()); |
|
60 return err; |
|
61 } |
|
62 |
|
63 EXPORT_C void CAudioContextFactory::DeleteAudioContext(MAudioContext*& aContext) |
|
64 { |
|
65 DP_CONTEXT(CAudioContextFactory::DeleteAudioContext *CD1*, CtxDevSound, DPLOCAL); |
|
66 DP_IN(); |
|
67 CAudioContext* contextPtr = static_cast<CAudioContext*>(aContext); |
|
68 delete contextPtr; |
|
69 DP_OUT(); |
|
70 //DP0_RET(KErrNone, "%d"); |
|
71 } |
|
72 |
|
73 // End of file |