khronosfws/openmax_al/src/gst_adaptation/xavolumeitfadaptation.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 16:22:35 +0300
changeset 16 43d09473c595
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* Copyright (c) 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: 
*
*/

#ifndef XAVOLUMEITFADAPTATION_H
#define XAVOLUMEITFADAPTATION_H

#include "xaadaptationgst.h"
#include "xathreadsafety.h"

/* MACROS */
#define STEREO_POSITION_RATIO    1000
#define MIN_SUPPORT_VOLUME_LEVEL -1000
#define VOLUME_LEVEL_RATIO       1000

/* FUNCTIONS */

XAresult XAVolumeItfAdapt_SetVolumeLevel(XAAdaptationGstCtx *ctx,
                                         XAmillibel level);

XAresult XAVolumeItfAdapt_GetMaxVolumeLevel(XAAdaptationGstCtx *ctx,
                                            XAmillibel *pMaxLevel);

XAresult XAVolumeItfAdapt_SetMute(XAAdaptationGstCtx *ctx,  XAboolean mute);

XAresult XAVolumeItfAdapt_EnableStereoPosition(XAAdaptationGstCtx *ctx,
                                               XAboolean enable);

XAresult XAVolumeItfAdapt_SetStereoPosition(XAAdaptationGstCtx *ctx,
                                            XApermille stereoPosition);

#endif /* XAVOLUMEITFADAPTATION_H */