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: Play Itf Adaptation MMF Header |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef XAPLAYITFADAPTATIONMMF_H |
18 #ifndef XAPLAYITFADAPTATIONMMF_H |
19 #define XAPLAYITFADAPTATIONMMF_H |
19 #define XAPLAYITFADAPTATIONMMF_H |
20 |
20 |
21 #include "xaadaptationmmf.h" |
21 #include "xaadaptationmmf.h" |
22 |
22 |
23 |
|
24 #ifdef _DEBUG |
23 #ifdef _DEBUG |
25 /*parse state names for debug prints*/ |
24 /*parse state names for debug prints*/ |
26 static const char* playstatenamemmf[3] = |
25 static const char* playstatenamemmf[3] = |
27 { |
26 { |
28 "XA_PLAYSTATE_STOPPED", |
27 "XA_PLAYSTATE_STOPPED", "XA_PLAYSTATE_PAUSED", "XA_PLAYSTATE_PLAYING" |
29 "XA_PLAYSTATE_PAUSED", |
28 }; |
30 "XA_PLAYSTATE_PLAYING" |
|
31 }; |
|
32 #define PLAYSTATENAME(i) (const char*)((i>0&&i<4)?playstatenamemmf[i-1]:"INVALID") |
29 #define PLAYSTATENAME(i) (const char*)((i>0&&i<4)?playstatenamemmf[i-1]:"INVALID") |
33 #endif /*_DEBUG*/ |
30 #endif /*_DEBUG*/ |
34 |
31 |
35 |
|
36 /* FUNCTIONS */ |
32 /* FUNCTIONS */ |
37 |
33 |
38 XAresult XAPlayItfAdaptMMF_SetPlayState(XAAdaptationBaseCtx *bCtx, XAuint32 state); |
34 XAresult XAPlayItfAdaptMMF_SetPlayState(XAAdaptationBaseCtx *bCtx, |
39 XAresult XAPlayItfAdaptMMF_GetPlayState(XAAdaptationBaseCtx *bCtx, XAuint32 *pState); |
35 XAuint32 state); |
40 XAresult XAPlayItfAdaptMMF_GetDuration(XAAdaptationBaseCtx *bCtx, XAmillisecond *pMsec); |
36 XAresult XAPlayItfAdaptMMF_GetPlayState(XAAdaptationBaseCtx *bCtx, |
41 XAresult XAPlayItfAdaptMMF_GetPosition(XAAdaptationBaseCtx *bCtx, XAmillisecond *pMsec); |
37 XAuint32 *pState); |
42 XAresult XAPlayItfAdaptMMF_RegisterCallback(XAAdaptationBaseCtx *bCtx, xaPlayCallback callback); |
38 XAresult XAPlayItfAdaptMMF_GetDuration(XAAdaptationBaseCtx *bCtx, |
43 XAresult XAPlayItfAdaptMMF_SetCallbackEventsMask(XAAdaptationBaseCtx *bCtx, XAuint32 eventFlags); |
39 XAmillisecond *pMsec); |
44 XAresult XAPlayItfAdaptMMF_SetMarkerPosition(XAAdaptationBaseCtx *bCtx, XAmillisecond mSec); |
40 XAresult XAPlayItfAdaptMMF_GetPosition(XAAdaptationBaseCtx *bCtx, |
|
41 XAmillisecond *pMsec); |
|
42 XAresult XAPlayItfAdaptMMF_RegisterCallback(XAAdaptationBaseCtx *bCtx, |
|
43 xaPlayCallback callback); |
|
44 XAresult XAPlayItfAdaptMMF_SetCallbackEventsMask(XAAdaptationBaseCtx *bCtx, |
|
45 XAuint32 eventFlags); |
|
46 XAresult XAPlayItfAdaptMMF_SetMarkerPosition(XAAdaptationBaseCtx *bCtx, |
|
47 XAmillisecond mSec); |
45 XAresult XAPlayItfAdaptMMF_ClearMarkerPosition(XAAdaptationBaseCtx *bCtx); |
48 XAresult XAPlayItfAdaptMMF_ClearMarkerPosition(XAAdaptationBaseCtx *bCtx); |
46 XAresult XAPlayItfAdaptMMF_SetPositionUpdatePeriod(XAAdaptationBaseCtx *bCtx, XAmillisecond mSec); |
49 XAresult XAPlayItfAdaptMMF_SetPositionUpdatePeriod(XAAdaptationBaseCtx *bCtx, |
47 void XAPlayItfAdaptMMF_StateChange(XAAdaptationBaseCtx *bCtx, XAboolean playing); |
50 XAmillisecond mSec); |
|
51 void XAPlayItfAdaptMMF_StateChange(XAAdaptationBaseCtx *bCtx, |
|
52 XAboolean playing); |
48 #endif /* XAPLAYITFADAPTATIONMMF_H */ |
53 #endif /* XAPLAYITFADAPTATIONMMF_H */ |