This commit is contained in:
houzh 2023-06-02 09:09:13 +00:00
commit c35f03dcb0
2 changed files with 16 additions and 2 deletions

View File

@ -1,6 +1,8 @@
#ifndef __CDMEDIA_PLAYER_H__
#define __CDMEDIA_PLAYER_H__
#include <cdtypes.h>
#include <stdbool.h>
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

View File

@ -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;
}