|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MMCCCODECAAC_H |
|
23 #define MMCCCODECAAC_H |
|
24 |
|
25 // INCLUDES |
|
26 #include "mmcccodecinformation.h" |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * Container class for the codec information. |
|
42 * |
|
43 */ |
|
44 NONSHARABLE_CLASS( CMccCodecAAC ) : public CMccCodecInformation |
|
45 { |
|
46 public: // Constructors and destructor |
|
47 |
|
48 /** |
|
49 * Two-phased constructor. |
|
50 */ |
|
51 static CMccCodecAAC* NewL(); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CMccCodecAAC(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 public: // Functions from base classes |
|
61 |
|
62 public: // From CMccCodecInformation |
|
63 |
|
64 TBool RequireSignalling( const CMccCodecInformation& aCandidate ) const; |
|
65 /** |
|
66 * From CMccCodecInformation |
|
67 */ |
|
68 CMccCodecInformation* CloneDefaultsL(); |
|
69 |
|
70 /** |
|
71 * From CMccCodecInformation |
|
72 */ |
|
73 CMccCodecInformation* CloneDetailedL(); |
|
74 |
|
75 |
|
76 TInt EnableVAD( TBool aEnableVAD ); |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 TInt SetBitrate( TUint aBitrate ); |
|
82 |
|
83 |
|
84 TInt SetSamplingFreq( TUint32 aSamplingFreq ); |
|
85 |
|
86 /** |
|
87 * From CMccCodecInformation. Sets the packet rate. |
|
88 * @since Series 60 3.0 |
|
89 * @param aPacketrate New packetrate |
|
90 * @return KErrNotSupported if codec doesn't support packetrate value issued; otherwise KErrNone. |
|
91 */ |
|
92 TInt SetPTime( TUint aPTime ); |
|
93 |
|
94 /** |
|
95 * From CMccCodecInformation. Sets the packet rate. |
|
96 * @since Series 60 3.0 |
|
97 * @param aPacketrate New packetrate |
|
98 * @return KErrNotSupported if codec doesn't support packetrate value issued; otherwise KErrNone. |
|
99 */ |
|
100 TInt SetMaxPTime( TUint aMaxPTime ); |
|
101 |
|
102 /** |
|
103 * From CMccCodecInformation. Sets the sdp name. |
|
104 * @since Series 60 3.0 |
|
105 * @param aRtpId - [input] RTP session ID |
|
106 * @return One of the standard system-wide error codes. |
|
107 */ |
|
108 TInt SetSdpName( const TDesC8& aSdpName ); |
|
109 |
|
110 /** |
|
111 * From CMccCodecInformation. Sets the payload type. |
|
112 * @since Series 60 3.0 |
|
113 * @param aRtpId - [input] RTP session ID |
|
114 * @return One of the standard system-wide error codes. |
|
115 */ |
|
116 TInt SetPayloadType( TUint8 aPayloadType ); |
|
117 |
|
118 /** |
|
119 * From CMccCodecInformation. Sets the codec mode. |
|
120 * @since Series 60 3.0 |
|
121 * @param aMode Codec mode ( e.g. ULAW/ALAW, Bandwidth efficient / octet aligned ) |
|
122 * @return KErrNotSupported if codec doesnt' support codec mode value issued; otherwise KErrNone. |
|
123 */ |
|
124 TInt SetCodecMode( TCodecMode aCodecMode ); |
|
125 |
|
126 protected: // New functions |
|
127 |
|
128 protected: // Functions from base classes |
|
129 |
|
130 private: |
|
131 |
|
132 /** |
|
133 * C++ default constructor. |
|
134 */ |
|
135 CMccCodecAAC(); |
|
136 |
|
137 /** |
|
138 * By default Symbian 2nd phase constructor is private. |
|
139 */ |
|
140 void ConstructL(); |
|
141 |
|
142 public: // Data |
|
143 |
|
144 protected: // Data |
|
145 |
|
146 private: // Data |
|
147 |
|
148 public: // Friend classes |
|
149 |
|
150 protected: // Friend classes |
|
151 |
|
152 private: // Friend classes |
|
153 |
|
154 #ifdef TEST_EUNIT |
|
155 friend class UT_CMccCodecAAC; |
|
156 #endif |
|
157 }; |
|
158 |
|
159 #endif // MMCCCODECAAC_H |
|
160 |
|
161 // End of File |