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: Volume Interface Header |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XAVOLUMEITF_H |
|
19 #define XAVOLUMEITF_H |
|
20 |
|
21 #include "xaadptbasectx.h" |
|
22 |
|
23 /** MACROS **/ |
|
24 |
|
25 /** TYPES **/ |
|
26 |
|
27 /** ENUMERATIONS **/ |
|
28 |
|
29 /** STRUCTURES **/ |
|
30 /* Definition of XAVolumeItf implementation */ |
|
31 typedef struct XAVolumeItfImpl_ |
|
32 { |
|
33 /* parent interface */ |
|
34 struct XAVolumeItf_ itf; |
|
35 /* pointer to self */ |
|
36 struct XAVolumeItfImpl_* self; |
|
37 |
|
38 XAmillibel volumeLevel; |
|
39 XAboolean mute; |
|
40 XAboolean enableStereoPos; |
|
41 XApermille stereoPosition; |
|
42 /*Adaptation variables*/ |
|
43 XAAdaptationBaseCtx *adapCtx; |
|
44 } XAVolumeItfImpl; |
|
45 |
|
46 /** METHODS **/ |
|
47 |
|
48 /* Base interface XAVolumeItf implementation */ |
|
49 XAresult XAVolumeItfImpl_SetVolumeLevel(XAVolumeItf self, XAmillibel level); |
|
50 |
|
51 XAresult XAVolumeItfImpl_GetVolumeLevel(XAVolumeItf self, XAmillibel *pLevel); |
|
52 |
|
53 XAresult XAVolumeItfImpl_GetMaxVolumeLevel(XAVolumeItf self, |
|
54 XAmillibel *pMaxLevel); |
|
55 |
|
56 XAresult XAVolumeItfImpl_SetMute(XAVolumeItf self, XAboolean mute); |
|
57 |
|
58 XAresult XAVolumeItfImpl_GetMute(XAVolumeItf self, XAboolean *pMute); |
|
59 |
|
60 XAresult XAVolumeItfImpl_EnableStereoPosition(XAVolumeItf self, |
|
61 XAboolean enable); |
|
62 |
|
63 XAresult XAVolumeItfImpl_IsEnabledStereoPosition(XAVolumeItf self, |
|
64 XAboolean *pEnable); |
|
65 |
|
66 XAresult XAVolumeItfImpl_SetStereoPosition(XAVolumeItf self, |
|
67 XApermille stereoPosition); |
|
68 |
|
69 XAresult XAVolumeItfImpl_GetStereoPosition(XAVolumeItf self, |
|
70 XApermille *pStereoPosition); |
|
71 |
|
72 /* XAVolumeItfImpl -specific methods */ |
|
73 XAVolumeItfImpl* XAVolumeItfImpl_Create(XAAdaptationBaseCtx *adapCtx); |
|
74 void XAVolumeItfImpl_Free(XAVolumeItfImpl* self); |
|
75 |
|
76 #endif /* XAVOLUMEITF_H */ |
|