|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * Generic API for audio codecs. |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef __AUDPARAMS_H__ |
|
21 #define __AUDPARAMS_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <E32Base.h> |
|
27 |
|
28 |
|
29 // CLASS DEFINITIONS |
|
30 /* |
|
31 ----------------------------------------------------------------------------- |
|
32 |
|
33 TAudioCodecParams |
|
34 |
|
35 Audio codec parameters. |
|
36 |
|
37 ----------------------------------------------------------------------------- |
|
38 */ |
|
39 class TAudioCodecParams |
|
40 { |
|
41 public: |
|
42 enum TParamsType |
|
43 { |
|
44 ETypeDecoder = 0, |
|
45 ETypeEncoder |
|
46 }; |
|
47 public: |
|
48 virtual TInt CodecId() const = 0; |
|
49 virtual TInt Type() const = 0; |
|
50 }; |
|
51 |
|
52 |
|
53 /* |
|
54 ----------------------------------------------------------------------------- |
|
55 |
|
56 TAudioDecoderParams |
|
57 |
|
58 Decoding parameters. |
|
59 |
|
60 ----------------------------------------------------------------------------- |
|
61 */ |
|
62 class TAudioDecoderParams : public TAudioCodecParams |
|
63 { |
|
64 public: |
|
65 IMPORT_C virtual TInt Type() const; |
|
66 }; |
|
67 |
|
68 |
|
69 /* |
|
70 ----------------------------------------------------------------------------- |
|
71 |
|
72 TAudioEncoderParams |
|
73 |
|
74 Encoding parameters. |
|
75 |
|
76 ----------------------------------------------------------------------------- |
|
77 */ |
|
78 class TAudioEncoderParams : public TAudioCodecParams |
|
79 { |
|
80 public: |
|
81 IMPORT_C virtual TInt Type() const; |
|
82 }; |
|
83 |
|
84 |
|
85 #endif //__AUDPARAMS_H__ |
|
86 //----------------------------------------------------------------------------- |
|
87 // End of File |
|
88 //----------------------------------------------------------------------------- |