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 @publishedPartner@prototype |
|
22 */ |
|
23 |
|
24 #ifndef OMXILSYMBIANAUDIOPCMEXTENSIONS_H |
|
25 #define OMXILSYMBIANAUDIOPCMEXTENSIONS_H |
|
26 |
|
27 |
|
28 #include <openmax/il/khronos/v1_x/OMX_Types.h> |
|
29 |
|
30 |
|
31 /** |
|
32 * The string that the Symbian's OpenMAX IL PCM Renderer component will |
|
33 * translate into a 32-bit OpenMAX IL index (@see |
|
34 * OMX_SYMBIAN_AUDIO_CONFIG_PCM_VOLUMERAMP) to support the |
|
35 * Volume Ramp feature of the MPlayCustomInterface CI |
|
36 */ |
|
37 const char sOmxSymbianPcmVolumeRamp [] = |
|
38 "OMX.Symbian.index.config.audio.pcm.volumeramp"; |
|
39 |
|
40 |
|
41 /** |
|
42 * Custom index used by Symbian's OpenMAX IL PCM renderer to select the |
|
43 * structure for setting/getting a Volume Ramp configuration data item |
|
44 */ |
|
45 #define OMX_SymbianIndexConfigAudioPcmVolumeRamp 0x7F000002 |
|
46 |
|
47 |
|
48 /** |
|
49 * Custom OpenMAX IL structure to be used as a container for an |
|
50 * Volume Ramp configuration data item |
|
51 */ |
|
52 struct OMX_SYMBIAN_AUDIO_CONFIG_PCM_VOLUMERAMP |
|
53 { |
|
54 OMX_U32 nSize; /**< Size of this structure, in Bytes */ |
|
55 OMX_VERSIONTYPE nVersion; /**< OMX specification version information */ |
|
56 OMX_U32 nPortIndex; /**< Port that this structure applies to */ |
|
57 OMX_U64 nRampDuration; /**< the period, in microseconds, over which the volume level is |
|
58 to rise smoothly from nothing to the |
|
59 required volume level */ |
|
60 }; |
|
61 |
|
62 /** |
|
63 * The string that the Symbian's OpenMAX IL PCM Renderer component will |
|
64 * translate into a 32-bit OpenMAX IL index (@see |
|
65 * OMX_SYMBIAN_AUDIO_CONFIG_PCM_BYTESPLAYED) to support the |
|
66 * Bytes Played feature of the MPlayCustomInterface CI |
|
67 */ |
|
68 const char sOmxSymbianPcmBytesPlayed [] = |
|
69 "OMX.Symbian.index.config.audio.pcm.bytesplayed"; |
|
70 |
|
71 |
|
72 /** |
|
73 * Custom index used by Symbian's OpenMAX IL PCM renderer to select the |
|
74 * structure for getting a Bytes Played configuration data item |
|
75 */ |
|
76 #define OMX_SymbianIndexConfigAudioBytesPlayed 0x7F000003 |
|
77 |
|
78 |
|
79 /** |
|
80 * Custom OpenMAX IL structure to be used as a container for an |
|
81 * Bytes Played configuration data item |
|
82 */ |
|
83 struct OMX_SYMBIAN_AUDIO_CONFIG_PCM_BYTESPLAYED |
|
84 { |
|
85 OMX_U32 nSize; /**< Size of this structure, in Bytes */ |
|
86 OMX_VERSIONTYPE nVersion; /**< OMX specification version information */ |
|
87 OMX_U32 nBytesPlayed; /**< the number of bytes played */ |
|
88 }; |
|
89 |
|
90 |
|
91 #endif // OMXILSYMBIANAUDIOPCMEXTENSIONS_H |
|