|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This is a builder class for decoder object. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "AWBAudioPlayControllerDecoderBuilder.h" |
|
22 #include "AWBAudioPlayControllerDecoder.h" |
|
23 #include "DebugMacros.h" |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CAWBAudioPlayControllerDecoderBuilder::CAWBAudioPlayControllerDecoderBuilder |
|
29 // C++ default constructor can NOT contain any code, that |
|
30 // might leave. |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CAWBAudioPlayControllerDecoderBuilder::CAWBAudioPlayControllerDecoderBuilder() |
|
34 { |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CAWBAudioPlayControllerDecoderBuilder::ConstructL |
|
39 // Symbian 2nd phase constructor can leave. |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 void CAWBAudioPlayControllerDecoderBuilder::ConstructL() |
|
43 { |
|
44 DP0(_L("CAWBAudioPlayControllerDecoderBuilder::ConstructL")); |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CAWBAudioPlayControllerDecoderBuilder::NewL |
|
49 // Two-phased constructor. |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 CAWBAudioPlayControllerDecoderBuilder* CAWBAudioPlayControllerDecoderBuilder::NewL() |
|
53 { |
|
54 DP0(_L("CAWBAudioPlayControllerDecoderBuilder::NewL")); |
|
55 CAWBAudioPlayControllerDecoderBuilder* self = new(ELeave) CAWBAudioPlayControllerDecoderBuilder(); |
|
56 CleanupStack::PushL(self); |
|
57 self->ConstructL(); |
|
58 CleanupStack::Pop(self); // self |
|
59 return self; |
|
60 } |
|
61 |
|
62 // Destructor |
|
63 CAWBAudioPlayControllerDecoderBuilder::~CAWBAudioPlayControllerDecoderBuilder() |
|
64 { |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CAWBAudioPlayControllerDecoderBuilder::BuildDecoderL |
|
69 // Creates a decoder of specified type. |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 CAdvancedAudioDecoder* CAWBAudioPlayControllerDecoderBuilder::BuildDecoderL( |
|
73 TInt /*aType*/ ) |
|
74 { |
|
75 DP0(_L("CAWBAudioPlayControllerDecoderBuilder::BuildDecoderL")); |
|
76 // For CMMFCodec version, we use same decoder for play and conversion |
|
77 CAWBAudioPlayControllerDecoder* decoder = CAWBAudioPlayControllerDecoder::NewL(); |
|
78 return decoder; |
|
79 } |
|
80 |
|
81 // End of File |