omxil/mmilapi/ilif/inc/ilaudioconfigstructs.h
changeset 56 b6488ac24ddc
parent 47 481b3bce574a
child 57 1cbb0d5bf7f2
equal deleted inserted replaced
47:481b3bce574a 56:b6488ac24ddc
     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 #ifndef ILAUDIOCONFIGSTRUCTS_H
       
    17 #define ILAUDIOCONFIGSTRUCTS_H
       
    18 
       
    19 #include <openmax/il/khronos/v1_x/OMX_Audio.h>
       
    20 
       
    21 /**
       
    22 @file
       
    23 @internalTechnology
       
    24 @prototype
       
    25 */
       
    26 
       
    27 /** 
       
    28 This is the structure to be used by implementations of the MMMFDevSoundCustomInterfaceSpecificConfig::SetFormatSpecificConfigL() 
       
    29 method to pass the AudioSpecificConfig configuration data blindly to the codec.
       
    30 */	
       
    31 class TAudioSpecificConfigType
       
    32 {
       
    33 public:
       
    34 	/** The pointer to the AudioSpecificConfig chunk of data.
       
    35     */
       
    36 	TUint8* iAudioSpecificConfig;
       
    37 
       
    38 	/** The length of the data encapsulated in this structure..
       
    39     */
       
    40 	TUint32 iAudioSpecificConfigLength;
       
    41 	
       
    42 };
       
    43 
       
    44 
       
    45 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
       
    46 /* The rest of this file defines some structures that are not publishedPartner yet.
       
    47 /* They have been defined for internal used only as a proof of concept for testing
       
    48 /* the varios possible MILIF implementations.
       
    49 /* These definition could be upgraded to publishedPartner when the need for Symbian 
       
    50 /* support of these particular params arises.
       
    51 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
       
    52 
       
    53 /** 
       
    54 A typedef to symbianize the OpenMAX IL PORTFORMATTYPE parameter structure.
       
    55 */	
       
    56 typedef OMX_AUDIO_PARAM_PORTFORMATTYPE	TAudioPortFormatType;
       
    57 
       
    58 	
       
    59 /**
       
    60 A typedef to symbianize the OpenMAX IL VORBISTYPE parameter structure.
       
    61 
       
    62 @internalTechnology
       
    63 @prototype
       
    64 */	
       
    65 typedef OMX_AUDIO_PARAM_VORBISTYPE		TPortVorbisType;
       
    66 
       
    67 /** 
       
    68 A typedef to symbianize the OpenMAX IL PCMMODETYPE parameter structure.
       
    69 
       
    70 @internalTechnology
       
    71 @prototype
       
    72 */	
       
    73 typedef OMX_AUDIO_PARAM_PCMMODETYPE		TPortPCMModeType;
       
    74 
       
    75 /** 
       
    76 A typedef to symbianize the OpenMAX IL AACPROFILETYPE parameter structure.
       
    77 
       
    78 @internalTechnology
       
    79 @prototype
       
    80 */	
       
    81 typedef OMX_AUDIO_PARAM_AACPROFILETYPE	TPortAACProfileType;
       
    82 
       
    83 /** 
       
    84 A typedef to symbianize the OpenMAX IL VOLUMETYPE parameter structure.
       
    85 
       
    86 @internalTechnology
       
    87 @prototype
       
    88 */	
       
    89 typedef OMX_AUDIO_CONFIG_VOLUMETYPE		TPortVolumeType;
       
    90 
       
    91 /** 
       
    92 A typedef to symbianize the OpenMAX IL MUTETYPE parameter structure.
       
    93 
       
    94 @internalTechnology
       
    95 @prototype
       
    96 */	
       
    97 typedef OMX_AUDIO_CONFIG_MUTETYPE		TPortMuteType;
       
    98 
       
    99 
       
   100 /**
       
   101 This is the structure to be used by implementations of the MMMFDevSoundCustomInterfaceSpecificConfig::SetFormatSpecificConfigL() 
       
   102 method to extract configuration data from the AudioSpecificConfig.
       
   103 
       
   104 @internalTechnology
       
   105 @prototype
       
   106 */
       
   107 class TAacConfig
       
   108 	{
       
   109 public:
       
   110 	inline TAacConfig();
       
   111 
       
   112 	inline TAacConfig(TUint8 aAudioType, TUint8 aSamplingRateIndex, TUint32 aNumChannels, TInt aStereoMode);
       
   113 
       
   114 public:
       
   115 	/** The audio object type
       
   116     */
       
   117 	TUint8 iAudioType;
       
   118 
       
   119 	/** The rate index of the audio data.
       
   120     */
       
   121 	TUint8 iSamplingRateIndex;
       
   122 
       
   123 	/** Number of channels of the underlying AAC coded stream
       
   124 	*/
       
   125 	TUint32 iNumChannels;
       
   126 
       
   127 	/** The type of stereo audio data.
       
   128 	*/
       
   129 	TInt iStereoMode;
       
   130 	};
       
   131 
       
   132 inline
       
   133 TAacConfig::TAacConfig()
       
   134 	:
       
   135 	iAudioType(0), 
       
   136 	iSamplingRateIndex(0),
       
   137 	iNumChannels(0),
       
   138 	iStereoMode(0)
       
   139 	{
       
   140 	}
       
   141 
       
   142 inline
       
   143 TAacConfig::TAacConfig(
       
   144 	TUint8 aAudioType,
       
   145 	TUint8 aSamplingRateIndex,
       
   146 	TUint32 aNumChannels,
       
   147 	TInt aStereoMode
       
   148 	)
       
   149 	:
       
   150 	iAudioType(aAudioType),
       
   151 	iSamplingRateIndex(aSamplingRateIndex),
       
   152 	iNumChannels(aNumChannels),
       
   153 	iStereoMode(aStereoMode)
       
   154 	{
       
   155 	}
       
   156 
       
   157 
       
   158 
       
   159 #endif  // ILAUDIOCONFIGSTRUCTS_H