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: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef XANVOLUMEEXTITF_H |
18 #ifndef XANVOLUMEEXTITF_H |
19 #define XANVOLUMEEXTITF_H |
19 #define XANVOLUMEEXTITF_H |
20 |
20 |
21 #include "openmaxalwrapper.h" |
21 #include "openmaxalwrapper.h" |
35 /** ENUMERATIONS **/ |
35 /** ENUMERATIONS **/ |
36 |
36 |
37 /** STRUCTURES **/ |
37 /** STRUCTURES **/ |
38 /* Definition of XANokiaVolumeExtItf implementation */ |
38 /* Definition of XANokiaVolumeExtItf implementation */ |
39 typedef struct XANokiaVolumeExtItfImpl_ |
39 typedef struct XANokiaVolumeExtItfImpl_ |
40 { |
40 { |
41 /* parent interface */ |
41 /* parent interface */ |
42 struct XANokiaVolumeExtItf_ itf; |
42 struct XANokiaVolumeExtItf_ itf; |
43 /* pointer to self */ |
43 /* pointer to self */ |
44 struct XANokiaVolumeExtItfImpl_* self; |
44 struct XANokiaVolumeExtItfImpl_* self; |
45 |
45 |
46 XAmillibel volumeLevel; |
46 XAmillibel volumeLevel; |
47 XAboolean mute; |
47 XAboolean mute; |
48 XAboolean enableStereoPos; |
48 XAboolean enableStereoPos; |
49 XApermille stereoPosition; |
49 XApermille stereoPosition; |
50 XAuint32 eventFlags; |
50 XAuint32 eventFlags; |
51 XANokiaVolumeExtItf cbPtrToSelf; |
51 XANokiaVolumeExtItf cbPtrToSelf; |
52 xaNokiaVolumeExtCallback callback; |
52 xaNokiaVolumeExtCallback callback; |
53 void *context; |
53 void *context; |
54 |
54 |
55 /*Adaptation variables*/ |
55 /*Adaptation variables*/ |
56 XAAdaptationBaseCtx *adapCtx; |
56 XAAdaptationBaseCtx *adapCtx; |
57 |
57 |
58 } XANokiaVolumeExtItfImpl; |
58 } XANokiaVolumeExtItfImpl; |
59 |
59 |
60 /** METHODS **/ |
60 /** METHODS **/ |
61 |
61 |
62 /* Base interface XANokiaVolumeExtItf implementation */ |
62 /* Base interface XANokiaVolumeExtItf implementation */ |
63 XAresult XANokiaVolumeExtItfImpl_SetVolumeLevel(XANokiaVolumeExtItf self, XAmillibel level); |
63 XAresult XANokiaVolumeExtItfImpl_SetVolumeLevel(XANokiaVolumeExtItf self, |
|
64 XAmillibel level); |
64 |
65 |
65 XAresult XANokiaVolumeExtItfImpl_GetVolumeLevel(XANokiaVolumeExtItf self, XAmillibel *pLevel); |
66 XAresult XANokiaVolumeExtItfImpl_GetVolumeLevel(XANokiaVolumeExtItf self, |
|
67 XAmillibel *pLevel); |
66 |
68 |
67 XAresult XANokiaVolumeExtItfImpl_GetMaxVolumeLevel(XANokiaVolumeExtItf self, XAmillibel *pMaxLevel); |
69 XAresult XANokiaVolumeExtItfImpl_GetMaxVolumeLevel(XANokiaVolumeExtItf self, |
|
70 XAmillibel *pMaxLevel); |
68 |
71 |
69 XAresult XANokiaVolumeExtItfImpl_SetMute(XANokiaVolumeExtItf self, XAboolean mute); |
72 XAresult XANokiaVolumeExtItfImpl_SetMute(XANokiaVolumeExtItf self, |
|
73 XAboolean mute); |
70 |
74 |
71 XAresult XANokiaVolumeExtItfImpl_GetMute(XANokiaVolumeExtItf self, XAboolean *pMute); |
75 XAresult XANokiaVolumeExtItfImpl_GetMute(XANokiaVolumeExtItf self, |
|
76 XAboolean *pMute); |
72 |
77 |
73 XAresult XANokiaVolumeExtItfImpl_EnableStereoPosition(XANokiaVolumeExtItf self, XAboolean enable); |
78 XAresult XANokiaVolumeExtItfImpl_EnableStereoPosition( |
|
79 XANokiaVolumeExtItf self, XAboolean enable); |
74 |
80 |
75 XAresult XANokiaVolumeExtItfImpl_IsEnabledStereoPosition(XANokiaVolumeExtItf self, XAboolean *pEnable); |
81 XAresult XANokiaVolumeExtItfImpl_IsEnabledStereoPosition( |
|
82 XANokiaVolumeExtItf self, XAboolean *pEnable); |
76 |
83 |
77 XAresult XANokiaVolumeExtItfImpl_SetStereoPosition(XANokiaVolumeExtItf self, XApermille stereoPosition); |
84 XAresult XANokiaVolumeExtItfImpl_SetStereoPosition(XANokiaVolumeExtItf self, |
|
85 XApermille stereoPosition); |
78 |
86 |
79 XAresult XANokiaVolumeExtItfImpl_GetStereoPosition(XANokiaVolumeExtItf self, XApermille *pStereoPosition); |
87 XAresult XANokiaVolumeExtItfImpl_GetStereoPosition(XANokiaVolumeExtItf self, |
|
88 XApermille *pStereoPosition); |
80 |
89 |
81 XAresult XANokiaVolumeExtItfImpl_RegisterVolumeCallback(XANokiaVolumeExtItf self, |
90 XAresult XANokiaVolumeExtItfImpl_RegisterVolumeCallback( |
82 xaNokiaVolumeExtCallback callback, |
91 XANokiaVolumeExtItf self, xaNokiaVolumeExtCallback callback, |
83 void * pContext); |
92 void * pContext); |
84 XAresult XANokiaVolumeExtItfImpl_SetCallbackEventsMask(XANokiaVolumeExtItf self, XAuint32 eventFlags ); |
93 XAresult XANokiaVolumeExtItfImpl_SetCallbackEventsMask( |
85 XAresult XANokiaVolumeExtItfImpl_GetCallbackEventsMask(XANokiaVolumeExtItf self, XAuint32 * pEventFlags); |
94 XANokiaVolumeExtItf self, XAuint32 eventFlags); |
|
95 XAresult XANokiaVolumeExtItfImpl_GetCallbackEventsMask( |
|
96 XANokiaVolumeExtItf self, XAuint32 * pEventFlags); |
86 |
97 |
87 /* XANokiaVolumeExtItfImpl -specific methods */ |
98 /* XANokiaVolumeExtItfImpl -specific methods */ |
88 XANokiaVolumeExtItfImpl* XANokiaVolumeExtItfImpl_Create(XAAdaptationBaseCtx *adapCtx); |
99 XANokiaVolumeExtItfImpl* XANokiaVolumeExtItfImpl_Create( |
|
100 XAAdaptationBaseCtx *adapCtx); |
89 void XANokiaVolumeExtItfImpl_Free(XANokiaVolumeExtItfImpl* self); |
101 void XANokiaVolumeExtItfImpl_Free(XANokiaVolumeExtItfImpl* self); |
90 void XANokiaVolumeExtItfImpl_AdaptCb( void *pHandlerCtx, XAAdaptEvent *event ); |
102 void XANokiaVolumeExtItfImpl_AdaptCb(void *pHandlerCtx, XAAdaptEvent *event); |
91 |
103 |
92 #endif /* XANVOLUMEEXTITF_H */ |
104 #endif /* XANVOLUMEEXTITF_H */ |