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 XAVOLUMEITFADAPTATION_H |
|
19 #define XAVOLUMEITFADAPTATION_H |
|
20 |
|
21 #include "XAAdaptationContextBase.h" |
|
22 #include "XADebug.h" |
|
23 #include "XAThreadSafety.h" |
|
24 |
|
25 /* MACROS */ |
|
26 #define STEREO_POSITION_RATIO 1000 |
|
27 #define MAX_SUPPORT_VOLUME_LEVEL 9000 |
|
28 #define MIN_SUPPORT_VOLUME_LEVEL -1000 |
|
29 #define VOLUME_LEVEL_RATIO 1000 |
|
30 |
|
31 /* FUNCTIONS */ |
|
32 |
|
33 XAresult XAVolumeItfAdapt_SetVolumeLevel(XAAdaptationBaseCtx *ctx, |
|
34 XAmillibel level); |
|
35 |
|
36 XAresult XAVolumeItfAdapt_GetMaxVolumeLevel(XAAdaptationBaseCtx *ctx, |
|
37 XAmillibel *pMaxLevel); |
|
38 |
|
39 XAresult XAVolumeItfAdapt_SetMute(XAAdaptationBaseCtx *ctx, XAboolean mute); |
|
40 |
|
41 XAresult XAVolumeItfAdapt_EnableStereoPosition(XAAdaptationBaseCtx *ctx, |
|
42 XAboolean enable); |
|
43 |
|
44 XAresult XAVolumeItfAdapt_SetStereoPosition(XAAdaptationBaseCtx *ctx, |
|
45 XApermille stereoPosition); |
|
46 |
|
47 XAresult XAVolumeItfAdapt_ThreadEntry(XAAdaptationBaseCtx *adaptCtx); |
|
48 XAresult XAVolumeItfAdapt_ThreadExit(XAAdaptationBaseCtx *adaptCtx); |
|
49 |
|
50 #endif /* XAVOLUMEITFADAPTATION_H */ |
|