diff -r 000000000000 -r 58be5850fb6c omxilcomp/omxilaudioemulator/pcmrenderer/inc/omxilsymbianaudiopcmextensions.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omxilcomp/omxilaudioemulator/pcmrenderer/inc/omxilsymbianaudiopcmextensions.h Thu Sep 02 20:13:57 2010 +0300 @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +/** + @file + @publishedPartner@prototype +*/ + +#ifndef OMXILSYMBIANAUDIOPCMEXTENSIONS_H +#define OMXILSYMBIANAUDIOPCMEXTENSIONS_H + + +#include + + +/** + * The string that the Symbian's OpenMAX IL PCM Renderer component will + * translate into a 32-bit OpenMAX IL index (@see + * OMX_SYMBIAN_AUDIO_CONFIG_PCM_VOLUMERAMP) to support the + * Volume Ramp feature of the MPlayCustomInterface CI + */ +const char sOmxSymbianPcmVolumeRamp [] = + "OMX.Symbian.index.config.audio.pcm.volumeramp"; + + +/** + * Custom index used by Symbian's OpenMAX IL PCM renderer to select the + * structure for setting/getting a Volume Ramp configuration data item + */ +#define OMX_SymbianIndexConfigAudioPcmVolumeRamp 0x7F000002 + + +/** + * Custom OpenMAX IL structure to be used as a container for an + * Volume Ramp configuration data item + */ +struct OMX_SYMBIAN_AUDIO_CONFIG_PCM_VOLUMERAMP + { + OMX_U32 nSize; /**< Size of this structure, in Bytes */ + OMX_VERSIONTYPE nVersion; /**< OMX specification version information */ + OMX_U32 nPortIndex; /**< Port that this structure applies to */ + OMX_U64 nRampDuration; /**< the period, in microseconds, over which the volume level is + to rise smoothly from nothing to the + required volume level */ + }; + +/** + * The string that the Symbian's OpenMAX IL PCM Renderer component will + * translate into a 32-bit OpenMAX IL index (@see + * OMX_SYMBIAN_AUDIO_CONFIG_PCM_BYTESPLAYED) to support the + * Bytes Played feature of the MPlayCustomInterface CI + */ +const char sOmxSymbianPcmBytesPlayed [] = + "OMX.Symbian.index.config.audio.pcm.bytesplayed"; + + +/** + * Custom index used by Symbian's OpenMAX IL PCM renderer to select the + * structure for getting a Bytes Played configuration data item + */ +#define OMX_SymbianIndexConfigAudioBytesPlayed 0x7F000003 + + +/** + * Custom OpenMAX IL structure to be used as a container for an + * Bytes Played configuration data item + */ +struct OMX_SYMBIAN_AUDIO_CONFIG_PCM_BYTESPLAYED + { + OMX_U32 nSize; /**< Size of this structure, in Bytes */ + OMX_VERSIONTYPE nVersion; /**< OMX specification version information */ + OMX_U32 nBytesPlayed; /**< the number of bytes played */ + }; + + +#endif // OMXILSYMBIANAUDIOPCMEXTENSIONS_H