|
1 /* |
|
2 * Copyright (c) 2008-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 |
|
25 #ifndef OMXILPCMRENDERERCONST_H_ |
|
26 #define OMXILPCMRENDERERCONST_H_ |
|
27 |
|
28 #include "mdasoundadapter.h" |
|
29 |
|
30 _LIT8(KSymbianOmxILPcmRendererName, "OMX.NOKIA.AUDIO.RENDERER.PCM"); |
|
31 _LIT8(KSymbianOmxILPcmRendererRole, "audio_renderer.pcm"); |
|
32 _LIT8(KMimeTypeAudioPcm, "audio/pcm"); |
|
33 |
|
34 const OMX_U32 KPCMRENDERER_APB0PORT_INDEX = 0; |
|
35 const OMX_U32 KPCMRENDERER_OPB0PORT_INDEX = 1; |
|
36 |
|
37 const TInt KBufferSize = 16384; // we need 16k to hold a pcm packet |
|
38 const TInt KDefaultSampleRate = 48000; // check out ./boardsupport/omap3variants/tiomap3bsp/variant/common/soundsc/variant_sound.cpp to find out the supporting rates |
|
39 const TInt KDefaultNumberChannels = 2; |
|
40 const TInt KDefaultBitPerSample = 16; |
|
41 const TInt KMaxVolume = 255; |
|
42 const TInt KMedianVolume = 226; |
|
43 const TInt KDefaultVolume = KMedianVolume; |
|
44 const TInt KMinBufferMilliseconds = 100; // Minimum number of milliseconds allowed in a buffer |
|
45 |
|
46 // Timeout to call RSoundSc::TimePlayed() every second |
|
47 // Under normal operation, the timer will return exactly one sec. |
|
48 // It is particular useful to compare the value from TimePlayed() |
|
49 static const TInt KPcmRendererTimePlayedDelay = 998113; |
|
50 |
|
51 const TBool KDefaultMuted = EFalse; |
|
52 |
|
53 const RMdaDevSound::TMdaSoundEncoding KDefaultEncoding = RMdaDevSound::EMdaSoundEncoding16BitPCM; |
|
54 |
|
55 #endif /*OMXILPCMRENDERERCONST_H_*/ |