khronosfws/openmax_al/src/outputmix/xaoutputmixitf.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 16:22:35 +0300
changeset 16 43d09473c595
parent 12 5a06f39ad45b
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 XAOUTPUTMIXITF_H_
#define XAOUTPUTMIXITF_H_

#include "xaadptbasectx.h"

/** MACROS **/

/** TYPES **/

/** ENUMERATIONS **/

/** STRUCTURES **/
/* Definition of XAOutputMixItf implementation */
typedef struct XAOutputMixItfImpl_
{
    /* parent interface */
    struct XAOutputMixItf_ itf;
    /* pointer to self */
    struct XAOutputMixItfImpl_* self;

    /* Variables */

    /*Adaptation variables*/
    XAAdaptationBaseCtx *adapCtx;

    XAuint32 eventFlags;
    xaMixDeviceChangeCallback callback;
    void    *cbContext;
    XAOutputMixItf cbPtrToSelf;

} XAOutputMixItfImpl;

/** METHODS **/

/* Base interface XAOutputMixItf implementation */
XAresult XAOutputMixItfImpl_GetDestinationOutputDeviceIDs( XAOutputMixItf self, XAint32 * pNumDevices, XAuint32 * pDeviceIDs );
XAresult XAOutputMixItfImpl_RegisterDeviceChangeCallback( XAOutputMixItf self, xaMixDeviceChangeCallback callback, void * pContext);
XAresult XAOutputMixItfImpl_ReRoute( XAOutputMixItf self, XAint32 numOutputDevices, XAuint32 * pOutputDeviceIDs);


/* XAOutputMixItfImpl -specific methods */
XAOutputMixItfImpl* XAOutputMixItfImpl_Create(XAAdaptationBaseCtx *adapCtx);
void XAOutputMixItfImpl_Free(XAOutputMixItfImpl* self);
void XAOutputMixItfImpl_AdaptCb( void *pHandlerCtx, XAAdaptEvent *event );


#endif /* XAOUTPUTMIXITF_H_ */