diff --git a/src/porting/include/cdplayer.h b/src/porting/include/cdplayer.h index 49099972..4625539f 100644 --- a/src/porting/include/cdplayer.h +++ b/src/porting/include/cdplayer.h @@ -1,6 +1,8 @@ #ifndef __CDMEDIA_PLAYER_H__ #define __CDMEDIA_PLAYER_H__ + #include +#include BEGIN_DECLS @@ -29,6 +31,9 @@ DWORD MPSetCallback(HANDLE,MP_CALLBACK,void*userdata); DWORD MPSetVolume(HANDLE,int colume); DWORD MPSetWindow(HANDLE,int x,int y,int width,int height); DWORD MPRotate(HANDLE handle, int type); +int MPGetStatus(HANDLE handle); +int MPFlushScreen(bool enable); + END_DECLS #endif diff --git a/src/porting/sigma/mediaplayer.c b/src/porting/sigma/mediaplayer.c index 12502102..2353e2e7 100644 --- a/src/porting/sigma/mediaplayer.c +++ b/src/porting/sigma/mediaplayer.c @@ -36,7 +36,7 @@ DWORD MPStop(HANDLE handle){ return E_OK; } -DWORD nglMPResume(HANDLE handle){ +DWORD MPResume(HANDLE handle){ MP_PLAYER*mp=(MP_PLAYER*)handle; mm_player_resume(); return E_OK; @@ -87,7 +87,7 @@ DWORD MPSetWindow(HANDLE handle,int x,int y,int width,int height){ return 0; } -DWORD MPRotate(HANDLE handle, int type) { +int MPRotate(HANDLE handle, int type) { MP_PLAYER *mp =(MP_PLAYER*)handle; GFXRect *r = &mp->viewPort; @@ -111,3 +111,12 @@ DWORD MPRotate(HANDLE handle, int type) { return 0; } + +int MPGetStatus(HANDLE handle) { + return mm_player_get_status(); +} + +int MPFlushScreen(bool enable) { + mm_player_flush_screen(enable); + return 0; +}