|
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 XAOUTPUTMIXADAPTCTX_H |
|
19 #define XAOUTPUTMIXADAPTCTX_H |
|
20 |
|
21 #include "xaadaptationgst.h" |
|
22 |
|
23 /* TYPEDEFS */ |
|
24 |
|
25 typedef struct XAOutputMixAdaptationCtx_ XAOutputMixAdaptationCtx; |
|
26 |
|
27 typedef struct XAOutputMixAdaptationCtx_ |
|
28 { |
|
29 /* Parent*/ |
|
30 XAAdaptationGstCtx_ baseObj; |
|
31 /* Internal variables */ |
|
32 XAboolean isStereoPosition; |
|
33 XAboolean mute; |
|
34 |
|
35 XAuint32 currentrouting; |
|
36 |
|
37 GArray* availableDevices; |
|
38 GArray* connectedObjects; |
|
39 } XAOutputMixAdaptationCtx_; |
|
40 |
|
41 typedef struct XAOMixAdaptConnObj_ |
|
42 { |
|
43 /*pointer to connected context*/ |
|
44 XAAdaptationGstCtx* ctx; |
|
45 /*pointer to sink currently used by connected ctx*/ |
|
46 GstElement* currentSink; |
|
47 } XAOMixAdaptConnObj; |
|
48 |
|
49 /* FUNCTIONS */ |
|
50 XAAdaptationBaseCtx* XAOutputMixAdapt_Create(void); |
|
51 XAresult XAOutputMixAdapt_PostInit(XAAdaptationGstCtx* bCtx); |
|
52 void XAOutputMixAdapt_Destroy(XAAdaptationGstCtx* bCtx); |
|
53 |
|
54 |
|
55 GstElement* XAOutputMixAdapt_GetSink(XAAdaptationGstCtx* bCtx); |
|
56 XAresult XAOutputMixAdapt_ConnectObject(XAAdaptationGstCtx* omCtx, XAAdaptationGstCtx* bCtx, GstElement* usedMix); |
|
57 XAresult XAOutputMixAdapt_DisconnectObject(XAAdaptationGstCtx* omCtx, XAAdaptationGstCtx* bCtx); |
|
58 |
|
59 #endif /* XAOUTPUTMIXADAPTCTX_H */ |