|
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: Class definition for the AWB utility functions. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CAWBAUDIOCONTROLLERUTILITY_H |
|
21 #define CAWBAUDIOCONTROLLERUTILITY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "AdvancedAudioUtility.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CMMFDataBuffer; |
|
28 |
|
29 // CLASS DEFINITIONS |
|
30 |
|
31 /** |
|
32 * This class provides AWB utility functions. |
|
33 * |
|
34 * @lib CAWBAudioControllerUtility.lib |
|
35 * @since 3.0 |
|
36 */ |
|
37 class CAWBAudioControllerUtility : public CAdvancedAudioUtility |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 IMPORT_C static CAWBAudioControllerUtility* NewL(); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 IMPORT_C virtual ~CAWBAudioControllerUtility(); |
|
50 |
|
51 public: // Functions from base classes |
|
52 |
|
53 /** |
|
54 * From CAdvancedAudioUtility |
|
55 * Returns the byte position of the first frame. |
|
56 * @param aBuf Pointer to the data |
|
57 * @param aBufLen Length of the data |
|
58 * @return byte position of the first frame |
|
59 */ |
|
60 TInt SeekSync( CMMFDataBuffer* aBuf, TInt aBufLen ); |
|
61 |
|
62 /** |
|
63 * From CAdvancedAudioUtility |
|
64 * Returns frame info. |
|
65 * @param aBuf Pointer to the data |
|
66 * @param aBufLen Length of the data |
|
67 * @param aInfo Contains the frame info on return |
|
68 * @return frame length |
|
69 */ |
|
70 TInt FrameInfo( const TUint8* aBuf, TInt aBufLen, TAudioFrameInfo& aInfo ); |
|
71 |
|
72 /** |
|
73 * From CAdvancedAudioUtility |
|
74 * Returns frame header size. |
|
75 * @param none |
|
76 * @return frame header size |
|
77 */ |
|
78 TInt FrameHeaderSize(); |
|
79 |
|
80 /** |
|
81 * From CAdvancedAudioUtility |
|
82 * Scans header information |
|
83 * @param aDataBuf |
|
84 * @return void |
|
85 */ |
|
86 void ScanHeaderL(CMMFDataBuffer* aDataBuf); |
|
87 |
|
88 private: |
|
89 |
|
90 /** |
|
91 * C++ default constructor. |
|
92 */ |
|
93 CAWBAudioControllerUtility(); |
|
94 |
|
95 /** |
|
96 * By default Symbian 2nd phase constructor is private. |
|
97 */ |
|
98 void ConstructL(); |
|
99 |
|
100 private: // Data |
|
101 |
|
102 }; |
|
103 |
|
104 #endif // CAWBAUDIOCONTROLLERUTILITY_H |
|
105 |
|
106 // End of File |