|
1 /* |
|
2 * Copyright (c) 2005 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: Defined messages for SBC encoder interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SBCENCODERINTFCMSGS_H |
|
21 #define SBCENCODERINTFCMSGS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <SbcEncoderIntfc.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // MACROS |
|
29 |
|
30 // DATA TYPES |
|
31 class TSbcEncoderBitpoolRange |
|
32 { |
|
33 public: |
|
34 |
|
35 TUint iMinSupportedBitpoolSize; |
|
36 TUint iMaxSupportedBitpoolSize; |
|
37 }; |
|
38 |
|
39 /** |
|
40 * Structure defining SBC encoder configuration data |
|
41 */ |
|
42 class TSbcEncoderConfig |
|
43 { |
|
44 public: |
|
45 TUint iSamplingFrequency; |
|
46 CSbcEncoderIntfc::TSbcChannelMode iChannelMode; |
|
47 TUint iNumOfSubbands; |
|
48 TUint iNumOfBlocks; |
|
49 CSbcEncoderIntfc::TSbcAllocationMethod iAllocationMethod; |
|
50 TUint iBitpoolSize; |
|
51 }; |
|
52 |
|
53 /** |
|
54 * Supported interface messages |
|
55 */ |
|
56 enum TSbcEncoderIntfcMsgs |
|
57 { |
|
58 ESbceimGetNumOfSupportedSamplingFrequencies, |
|
59 ESbceimGetSupportedSamplingFrequencies, |
|
60 ESbceimGetNumOfSupportedChannelModes, |
|
61 ESbceimGetSupportedChannelModes, |
|
62 ESbceimGetNumOfSupportedBlocks, |
|
63 ESbceimGetSupportedBlocks, |
|
64 ESbceimGetNumOfSupportedNumOfSubbands, |
|
65 ESbceimGetSupportedNumOfSubbands, |
|
66 ESbceimGetNumOfSupportedAllocationMethods, |
|
67 ESbceimGetSupportedAllocationMethods, |
|
68 ESbceimGetSupportedBitpoolRange, |
|
69 ESbceimApplyConfig |
|
70 }; |
|
71 |
|
72 // FUNCTION PROTOTYPES |
|
73 |
|
74 // FORWARD DECLARATIONS |
|
75 |
|
76 // CLASS DECLARATION |
|
77 |
|
78 #endif // SBCENCODERINTFCMSGS_H |
|
79 |
|
80 // End of File |