|
1 /* |
|
2 * Copyright (c) 2002-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: Provides iLBC payload format spesific definitions. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef ILBCPAYLOADFORMATUTIL_H |
|
21 #define ILBCPAYLOADFORMATUTIL_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 // CONSTANTS |
|
26 const TUint KiLBCSampleRate = 8000; //8 kHz |
|
27 const TUint8 KiLBCFrameTime20ms = 20; |
|
28 const TUint8 KiLBCFrameTime30ms = 30; |
|
29 |
|
30 const TUint8 KDefNumOfChannels = 1; |
|
31 |
|
32 // Codec header bytes indicating type of the frame |
|
33 const TUint8 KAudioFrameHeaderByte( 1 ); |
|
34 const TUint8 KCNoiseFrameHeaderByte( 2 ); |
|
35 |
|
36 // Number of header bytes |
|
37 const TUint8 KiLBCNumOfHeaderBytes = 2; |
|
38 |
|
39 // Time stamp increments with iLBC modes |
|
40 const TUint8 KiLBCTimeStampInc20Ms = 160; |
|
41 const TUint8 KiLBCTimeStampInc30Ms = 240; |
|
42 |
|
43 // RFC3952 |
|
44 const TInt KiLBCBitrateWith20ms = 15200; |
|
45 const TInt KiLBCBitrateWith30ms = 13330; |
|
46 |
|
47 const TUint8 KiLBCFrameSize20ms = 38; |
|
48 const TUint8 KiLBCFrameSize30ms = 50; |
|
49 |
|
50 // DATA TYPES |
|
51 |
|
52 // FUNCTION PROTOTYPES |
|
53 |
|
54 // FORWARD DECLARATIONS |
|
55 |
|
56 // CLASS DECLARATION |
|
57 |
|
58 #endif // ILBCPAYLOADFORMATUTIL_H |
|
59 |
|
60 // End of File |