|
1 /* |
|
2 * Copyright (c) 2006 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: Play controller for AMR. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AMRAUDIOPLAYCONTROLLERPLUGIN_H |
|
20 #define AMRAUDIOPLAYCONTROLLERPLUGIN_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "AdvancedAudioPlayController.h" |
|
24 |
|
25 // FORWARD DECLARATION |
|
26 class CAMRAudioPlayControllerDecoderBuilder; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CAMRAudioPlayControllerPlugin |
|
32 * |
|
33 * @lib VBRAudioPlayController.lib |
|
34 * @since 2.1 |
|
35 */ |
|
36 class CAMRAudioPlayControllerPlugin : public CAdvancedAudioPlayController |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CAMRAudioPlayControllerPlugin* NewL(); |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 virtual ~CAMRAudioPlayControllerPlugin(); |
|
49 |
|
50 private: // Functions from base classes |
|
51 |
|
52 /** |
|
53 * From CAdvancedAudioPlayController |
|
54 * Format specific initialization for Data Source |
|
55 * @since 3.0 |
|
56 * @return void |
|
57 */ |
|
58 void DoAddDataSourceL(); |
|
59 |
|
60 /** |
|
61 * From CAdvancedAudioPlayController |
|
62 * Format specific initialization for Data Sink |
|
63 * @since 3.0 |
|
64 * @return void |
|
65 */ |
|
66 void DoAddDataSinkL(); |
|
67 |
|
68 /** |
|
69 * From CAdvancedAudioPlayController |
|
70 * Format specific initialization for Data Sink |
|
71 * |
|
72 * @since 3.0 |
|
73 * @return void |
|
74 */ |
|
75 void DoReadHeaderL(CMMFDataBuffer* aBuffer); |
|
76 |
|
77 /** |
|
78 * From CAdvancedAudioPlayController |
|
79 * Instantiates the codec. |
|
80 * @since 5.0 |
|
81 * @return CAdvancedAudioDecoder* |
|
82 */ |
|
83 CAdvancedAudioDecoder* BuildDecoderL(); |
|
84 |
|
85 private: |
|
86 /** |
|
87 * C++ default constructor. |
|
88 */ |
|
89 CAMRAudioPlayControllerPlugin(); |
|
90 |
|
91 /** |
|
92 * By default Symbian 2nd phase constructor is private. |
|
93 */ |
|
94 void ConstructL(); |
|
95 |
|
96 private: // Data |
|
97 |
|
98 // Builder for AMR decoder object |
|
99 CAMRAudioPlayControllerDecoderBuilder* iDecoderBuilder; |
|
100 }; |
|
101 |
|
102 #endif // AMRAUDIOPLAYCONTROLLERPLUGIN_H |
|
103 |
|
104 // End of File |