khronosfws/openmax_al/src/outputmix/xaoutputmixitf.h
changeset 33 5e8b14bae8c3
parent 28 ebf79c79991a
child 36 73253677b50a
equal deleted inserted replaced
28:ebf79c79991a 33:5e8b14bae8c3
     1 /*
       
     2 * Copyright (c) 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 #ifndef XAOUTPUTMIXITF_H_
       
    19 #define XAOUTPUTMIXITF_H_
       
    20 
       
    21 #include "xaadptbasectx.h"
       
    22 
       
    23 /** MACROS **/
       
    24 
       
    25 /** TYPES **/
       
    26 
       
    27 /** ENUMERATIONS **/
       
    28 
       
    29 /** STRUCTURES **/
       
    30 /* Definition of XAOutputMixItf implementation */
       
    31 typedef struct XAOutputMixItfImpl_
       
    32 {
       
    33     /* parent interface */
       
    34     struct XAOutputMixItf_ itf;
       
    35     /* pointer to self */
       
    36     struct XAOutputMixItfImpl_* self;
       
    37 
       
    38     /* Variables */
       
    39 
       
    40     /*Adaptation variables*/
       
    41     XAAdaptationBaseCtx *adapCtx;
       
    42 
       
    43     XAuint32 eventFlags;
       
    44     xaMixDeviceChangeCallback callback;
       
    45     void    *cbContext;
       
    46     XAOutputMixItf cbPtrToSelf;
       
    47 
       
    48 } XAOutputMixItfImpl;
       
    49 
       
    50 /** METHODS **/
       
    51 
       
    52 /* Base interface XAOutputMixItf implementation */
       
    53 XAresult XAOutputMixItfImpl_GetDestinationOutputDeviceIDs( XAOutputMixItf self, XAint32 * pNumDevices, XAuint32 * pDeviceIDs );
       
    54 XAresult XAOutputMixItfImpl_RegisterDeviceChangeCallback( XAOutputMixItf self, xaMixDeviceChangeCallback callback, void * pContext);
       
    55 XAresult XAOutputMixItfImpl_ReRoute( XAOutputMixItf self, XAint32 numOutputDevices, XAuint32 * pOutputDeviceIDs);
       
    56 
       
    57 
       
    58 /* XAOutputMixItfImpl -specific methods */
       
    59 XAOutputMixItfImpl* XAOutputMixItfImpl_Create(XAAdaptationBaseCtx *adapCtx);
       
    60 void XAOutputMixItfImpl_Free(XAOutputMixItfImpl* self);
       
    61 void XAOutputMixItfImpl_AdaptCb( void *pHandlerCtx, XAAdaptEvent *event );
       
    62 
       
    63 
       
    64 #endif /* XAOUTPUTMIXITF_H_ */