mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-11-30 19:27:49 +08:00
Merge branch 'master' of https://gitee.com/houstudio/cdroid
This commit is contained in:
commit
c35f03dcb0
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user