|
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 XAOUTPUTMIX_H |
|
19 #define XAOUTPUTMIX_H |
|
20 |
|
21 #include "openmaxalwrapper.h" |
|
22 #include "xaobjectitf.h" |
|
23 #include "xaglobals.h" |
|
24 #ifdef _GSTREAMER_BACKEND_ |
|
25 #include "../adaptation/XAOutputMixAdaptCtx.h" |
|
26 #endif |
|
27 /** MACROS **/ |
|
28 |
|
29 |
|
30 /** TYPES **/ |
|
31 |
|
32 |
|
33 /** ENUMERATIONS **/ |
|
34 /* Enumeration for interfaces that OutputMix supports. */ |
|
35 typedef enum |
|
36 { |
|
37 OMIX_OBJECTITF, |
|
38 OMIX_DIMITF, |
|
39 OMIX_CONFIGEXTENSIONITF, |
|
40 OMIX_OUTPUTMIXITF, |
|
41 OMIX_EQUALIZERITF, |
|
42 OMIX_VOLUMEITF, |
|
43 OMIX_ITFCOUNT |
|
44 } XAOMixInterfaces; |
|
45 |
|
46 |
|
47 /** STRUCTURES **/ |
|
48 /* Specification for MediaPlayerImpl.*/ |
|
49 typedef struct XAOMixImpl_ |
|
50 { |
|
51 /* Parent for XAMediaPlayerImpl */ |
|
52 XAObjectItfImpl baseObj; |
|
53 |
|
54 #ifdef _GSTREAMER_BACKEND_ |
|
55 /* variables */ |
|
56 XAAdaptationBaseCtx* adaptationCtx; |
|
57 #endif |
|
58 } XAOMixImpl; |
|
59 |
|
60 |
|
61 /** METHODS **/ |
|
62 |
|
63 /* base object XAObjectItfImpl methods */ |
|
64 XAresult XAOMixImpl_DoRealize(XAObjectItf self); |
|
65 XAresult XAOMixImpl_DoResume(XAObjectItf self); |
|
66 void XAOMixImpl_FreeResources(XAObjectItf self); |
|
67 |
|
68 /* XAOMixImpl -specific methods*/ |
|
69 XAresult XAOMixImpl_DoAddItf(XAObjectItf self, XAObjItfMapEntry *mapEntry ); |
|
70 XAresult XAOMixImpl_DoResumeItf(XAObjectItf self, XAObjItfMapEntry *mapEntry ); |
|
71 XAresult XAOMixImpl_DoRemoveItf(XAObjectItf self, XAObjItfMapEntry *mapEntry ); |
|
72 |
|
73 #endif /* XAOUTPUTMIX_H */ |