|
1 // Copyright (c) 2008-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 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef OMXILMICSOURCECONST_H_ |
|
24 #define OMXILMICSOURCECONST_H_ |
|
25 |
|
26 #include <d32soundsc.h> |
|
27 |
|
28 _LIT8(KSymbianOmxILMicSourceName, "OMX.NOKIA.AUDIO.CAPTURER.PCM"); |
|
29 _LIT8(KSymbianOmxILMicSourceRole, "audio_capturer.pcm"); |
|
30 |
|
31 _LIT(KSndLddFileName,"ESOUNDSC.LDD"); |
|
32 _LIT(KSndPddFileName,"SOUNDSC.PDD"); |
|
33 _LIT(KSndPddWildcardExtension,".*"); |
|
34 |
|
35 const TUint8 KMicSourceComponentVersionMajor = 1; |
|
36 const TUint8 KMicSourceComponentVersionMinor = 0; |
|
37 const TUint8 KMicSourceComponentVersionRevision = 0; |
|
38 const TUint8 KMicSourceComponentVersionStep = 0; |
|
39 |
|
40 const OMX_U32 KMICSOURCE_APB0PORT_INDEX = 0; |
|
41 const OMX_U32 KMICSOURCE_OPB0PORT_INDEX = 1; |
|
42 |
|
43 const OMX_U32 KMICSOURCE_VOLUME_MIN = 0; |
|
44 const OMX_U32 KMICSOURCE_VOLUME_MAX = KSoundMaxVolume; |
|
45 |
|
46 const OMX_U32 KMICSOURCE_PCMPORT_BUFFERCOUNT_MIN = 4; |
|
47 const OMX_U32 KMICSOURCE_PCMPORT_BUFFERSIZE_MIN = 15360; // TODO: Decide the actual size of it, currently just copied from PCM render. |
|
48 const OMX_U32 KMICSOURCE_CLOCKPORT_BUFFERCOUNT_MIN = 3; |
|
49 |
|
50 #ifndef MICSOURCE_DYNAMIC_SETTINGS |
|
51 //Default current sound settings |
|
52 const TUint32 KMICSOURCE_VOLUME_DEFAULT = 127; |
|
53 const TInt KMICSOURCE_CHANNELS_DEFAULT = 2; |
|
54 const TSoundRate KMICSOURCE_SOUNDRATE_DEFAULT = ESoundRate48000Hz; |
|
55 const TSoundEncoding KMICSOURCE_SOUNDENCODING_DEFAULT = ESoundEncoding16BitPCM; |
|
56 const TSoundDataFormat KMICSOURCE_SOUNDDATAFORMAT_DEFAULT = ESoundDataFormatInterleaved; |
|
57 |
|
58 //Default supported sound settings |
|
59 const TUint32 KMICSOURCE_CHANNELS_SUPPORT = KSoundMonoChannel | KSoundStereoChannel; |
|
60 const TUint32 KMICSOURCE_SAMPLERATES_SUPPORT = KSoundRate7350Hz | KSoundRate8000Hz | KSoundRate8820Hz | |
|
61 KSoundRate9600Hz | KSoundRate11025Hz | KSoundRate12000Hz | KSoundRate14700Hz | |
|
62 KSoundRate16000Hz | KSoundRate22050Hz | KSoundRate24000Hz | KSoundRate29400Hz | |
|
63 KSoundRate32000Hz | KSoundRate44100Hz | KSoundRate48000Hz; |
|
64 |
|
65 const TUint32 KMICSOURCE_ENCODING_SUPPORT = KSoundEncoding8BitPCM | KSoundEncoding16BitPCM; |
|
66 const TUint32 KMICSOURCE_DATAFORMATS_SUPPORT = KSoundDataFormatInterleaved; |
|
67 const TSoundDirection KMICSOURCE_SOUNDDIRECTION = ESoundDirRecord; |
|
68 const TBool KMICSOURCE_HWCONFIGNOTIFICATION_SUPPORT = EFalse; |
|
69 const TInt KMICSOURCE_REQUESTMINSIZE_SUPPORT = 0; |
|
70 const TInt KMICSOURCE_REQUESTALIGNMENT_SUPPORT = 0; |
|
71 #endif //MICSOURCE_DYNAMIC_SETTINGS |
|
72 |
|
73 #endif /*OMXILMICSOURCECONST_H_*/ |