|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef TSU_MDF_OMXVORBISCODECS_CONSTANTS_H |
|
22 #define TSU_MDF_OMXVORBISCODECS_CONSTANTS_H |
|
23 |
|
24 #define KUidHwDeviceAudioCodecTestAdapter 0x102737dd |
|
25 #define KUidHwDeviceAudioAdapter 0x10273791 |
|
26 #define KMaxDataTypeLength 126 |
|
27 #define KUidMdfProcessingUnit 0x10273789 |
|
28 const TUint KVersionOne = 1; |
|
29 |
|
30 // heap size - we will be opening some large files. |
|
31 const TInt KTestHeapSize = 0x200000; // 2 Mb |
|
32 |
|
33 // files we are going to play from |
|
34 _LIT(KTestDecoderPlayFile, "c:\\mm\\mmf\\testfiles\\mdf\\ogg-decode-in.ogg"); |
|
35 _LIT(KTestEncoderPlayFile, "c:\\mm\\mmf\\testfiles\\mdf\\ogg-encode-in.wav"); |
|
36 |
|
37 // files we are going to record into, with expected sizes |
|
38 _LIT(KTestDecoderRecordedFile, "c:\\ogg-decode-out.wav"); |
|
39 const TInt KTestDecoderRecordedFileExpectedSize = 1066284; |
|
40 _LIT(KTestEncoderRecordedFile, "c:\\ogg-encode-out.ogg"); |
|
41 const TInt KTestEncoderRecordedFileExpectedSize = 54942; |
|
42 |
|
43 // sound parameters for init / config |
|
44 // appropriate to our test files |
|
45 const TInt KTestWavFormatPCMChunkHeaderSize = 36; |
|
46 const TInt KTestWavFormatPCMSubchunk1Size = 16; |
|
47 const TInt KTestAudioFormatPCM = 1; |
|
48 const TInt KTestSampleRate = 44100; |
|
49 const TInt KTestNumChannels = 2; |
|
50 const TInt KTestBitsPerSample = 16; |
|
51 const TInt KTestBitRate = 128000; |
|
52 |
|
53 |
|
54 const TUint32 KMMFFourCCCodeTestVorbis = 0x32425256; //('V', 'R', 'B', '2') |
|
55 |
|
56 #endif // TSU_MDF_OMXVORBISCODECS_CONSTANTS_H |