khronosfws/openmax_al/src/common/xavolumeitf.h
changeset 25 6f7ceef7b1d1
parent 19 4a629bc82c5e
equal deleted inserted replaced
21:2ed61feeead6 25:6f7ceef7b1d1
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description: 
    14  * Description: Volume Interface Header
    15 *
    15  *
    16 */
    16  */
    17 
    17 
    18 #ifndef XAVOLUMEITF_H
    18 #ifndef XAVOLUMEITF_H
    19 #define XAVOLUMEITF_H
    19 #define XAVOLUMEITF_H
    20 
    20 
    21 #include "xaadptbasectx.h"
    21 #include "xaadptbasectx.h"
    27 /** ENUMERATIONS **/
    27 /** ENUMERATIONS **/
    28 
    28 
    29 /** STRUCTURES **/
    29 /** STRUCTURES **/
    30 /* Definition of XAVolumeItf implementation */
    30 /* Definition of XAVolumeItf implementation */
    31 typedef struct XAVolumeItfImpl_
    31 typedef struct XAVolumeItfImpl_
    32 {
    32     {
    33     /* parent interface */
    33     /* parent interface */
    34     struct XAVolumeItf_ itf;
    34     struct XAVolumeItf_ itf;
    35     /* pointer to self */
    35     /* pointer to self */
    36     struct XAVolumeItfImpl_* self;
    36     struct XAVolumeItfImpl_* self;
    37 
    37 
    39     XAboolean mute;
    39     XAboolean mute;
    40     XAboolean enableStereoPos;
    40     XAboolean enableStereoPos;
    41     XApermille stereoPosition;
    41     XApermille stereoPosition;
    42     /*Adaptation variables*/
    42     /*Adaptation variables*/
    43     XAAdaptationBaseCtx *adapCtx;
    43     XAAdaptationBaseCtx *adapCtx;
    44 } XAVolumeItfImpl;
    44     } XAVolumeItfImpl;
    45 
    45 
    46 /** METHODS **/
    46 /** METHODS **/
    47 
    47 
    48 /* Base interface XAVolumeItf implementation */
    48 /* Base interface XAVolumeItf implementation */
    49 XAresult XAVolumeItfImpl_SetVolumeLevel(XAVolumeItf self, XAmillibel level);
    49 XAresult XAVolumeItfImpl_SetVolumeLevel(XAVolumeItf self, XAmillibel level);
    50 
    50 
    51 XAresult XAVolumeItfImpl_GetVolumeLevel(XAVolumeItf self, XAmillibel *pLevel);
    51 XAresult XAVolumeItfImpl_GetVolumeLevel(XAVolumeItf self, XAmillibel *pLevel);
    52 
    52 
    53 XAresult XAVolumeItfImpl_GetMaxVolumeLevel(XAVolumeItf self, XAmillibel *pMaxLevel);
    53 XAresult XAVolumeItfImpl_GetMaxVolumeLevel(XAVolumeItf self,
       
    54         XAmillibel *pMaxLevel);
    54 
    55 
    55 XAresult XAVolumeItfImpl_SetMute(XAVolumeItf self, XAboolean mute);
    56 XAresult XAVolumeItfImpl_SetMute(XAVolumeItf self, XAboolean mute);
    56 
    57 
    57 XAresult XAVolumeItfImpl_GetMute(XAVolumeItf self, XAboolean *pMute);
    58 XAresult XAVolumeItfImpl_GetMute(XAVolumeItf self, XAboolean *pMute);
    58 
    59 
    59 XAresult XAVolumeItfImpl_EnableStereoPosition(XAVolumeItf self, XAboolean enable);
    60 XAresult XAVolumeItfImpl_EnableStereoPosition(XAVolumeItf self,
       
    61         XAboolean enable);
    60 
    62 
    61 XAresult XAVolumeItfImpl_IsEnabledStereoPosition(XAVolumeItf self, XAboolean *pEnable);
    63 XAresult XAVolumeItfImpl_IsEnabledStereoPosition(XAVolumeItf self,
       
    64         XAboolean *pEnable);
    62 
    65 
    63 XAresult XAVolumeItfImpl_SetStereoPosition(XAVolumeItf self, XApermille stereoPosition);
    66 XAresult XAVolumeItfImpl_SetStereoPosition(XAVolumeItf self,
       
    67         XApermille stereoPosition);
    64 
    68 
    65 XAresult XAVolumeItfImpl_GetStereoPosition(XAVolumeItf self, XApermille *pStereoPosition);
    69 XAresult XAVolumeItfImpl_GetStereoPosition(XAVolumeItf self,
       
    70         XApermille *pStereoPosition);
    66 
    71 
    67  
       
    68 /* XAVolumeItfImpl -specific methods */
    72 /* XAVolumeItfImpl -specific methods */
    69 XAVolumeItfImpl* XAVolumeItfImpl_Create(XAAdaptationBaseCtx *adapCtx);
    73 XAVolumeItfImpl* XAVolumeItfImpl_Create(XAAdaptationBaseCtx *adapCtx);
    70 void XAVolumeItfImpl_Free(XAVolumeItfImpl* self);
    74 void XAVolumeItfImpl_Free(XAVolumeItfImpl* self);
    71 
    75 
    72 #endif /* XAVOLUMEITF_H */
    76 #endif /* XAVOLUMEITF_H */