mediaplayer.h
上传用户:hejie16899
上传日期:2021-10-21
资源大小:4758k
文件大小:2k
- #ifndef _H_MEDIAPLAYER_
- #define _H_MEDIAPLAYER_
- #include "AEEMenu.h"
- #define CMP_MAX_FILES 32
- #define MP_MAX_STRLEN 64
- typedef enum CMPWindow
- {
- MPW_NONE,
- MPW_MAIN,
- MPW_SONGLIST,
- MPW_SONGPLAYER,
- MPW_EXIT
- } CMPWindow;
- typedef struct _MediaPlayer {
- AEEApplet a ; // First element of this structure must be AEEApplet
- AEEDeviceInfo DeviceInfo; // always have access to the hardware device information
- CMPWindow m_eActiveWin; //不同界面切换/激活标记
-
- IStatic * m_pTitle;
- IMenuCtl* m_pMainMenu; //主界面菜单控件
- IMenuCtl* m_pSOFTKEYMenu; //
- IMenuCtl* m_pFileMenu; //歌曲列表菜单控件
- IMenuCtl* m_pPlayerMenu; //播放界面的按钮控件
- FileInfo m_pFileInfo; //包含与歌曲关联的信息
- IMedia * m_pIMedia; //media接口
- char * m_szFileArray[CMP_MAX_FILES];//按顺序保存歌曲列表中文件名
- int m_cxWidth; //屏幕的宽,x方向
- int m_cyHeight; //屏幕的长,y方向
- int m_NumFiles; // Number of files read into m_szFileArray
- uint16 m_item;
- uint16 m_nColorDepth; // 色深 (1表示黑色,2表示灰色等)
- uint16 m_wPct;
- uint16 m_wVolume; // Volume
- uint16 m_MaxSongFile; //装入歌曲的数目
- uint32 m_dwTotalTime; // Total playback time
- uint32 m_dwPlayPos; // Current playback pos
- AECHAR m_szText[MP_MAX_STRLEN];
- AEERect m_rectMain;
- AEERect m_rectBar;
-
- flg m_bPlayRec:1; // = TRUE, if Playback progress flag
- flg m_bProgTimer:1; // = TRUE, if prog timer is running. Regular display is not updated.
- } MediaPlayer;
- #endif