xplayer_state.h
资源名称:111.rar [点击查看]
上传用户:mony888
上传日期:2022-07-26
资源大小:1247k
文件大小:1k
源码类别:
Windows CE
开发平台:
Visual C++
- /*
- *
- §==================§==================§==================§==================§
- § § § § §
- § 2005-05-18 § 1.0 § 高炜 § creat! §
- § § § § §
- §==================§==================§==================§==================§
- *
- */
- #ifndef _XPLAYER_STATE_H_
- #define _XPLAYER_STATE_H_
- #define PLAY_OPEN_E_NO_CODEC -4
- #define PLAY_OPEN_SUCCESS 0
- #define SYS_FILE_DISK_FILE_TYPE 1
- #define SYS_FILE_MEMORY_FILE_TYPE 2
- //MaskAdded,附加特性定义
- //应用内部使用的自定义区域,长度8位,任何应用传递此结构给其他应用之前,需要清0
- #define SYS_FILE_MASK_USER_DEF_MASK 0xFF000000
- //此文件具有联通定义的版权信息
- #define SYS_FILE_MASK_UNICOM_COPY_RIGHT 0x00000002
- #define EOS_FILE_MAX_PATH 260
- typedef struct
- {
- int ModeInd; //磁盘文件或内存文件指示
- unsigned int MaskAdded; //附加特性
- int len; //文件长度,只针对内存文件有效
- char filename[EOS_FILE_MAX_PATH]; //文件名称
- char data[4];
- }SYS_FILE_CONTENT_TYPE;
- typedef enum {
- CPC_PLAY,
- CPC_STOP,
- CPC_PAUSE,
- CPC_FORWARD,
- CPC_BACKWARD,
- //CPC_FIRST,
- //CPC_PREV,
- //CPC_NEXT,
- //CPC_LAST,
- CPC_SEEK,
- CPC_FULL,
- CPC_MAX
- }cp_command_t;
- #define PLAY_STEP 5
- typedef enum {
- PS_STOPPED, /* file played, but stopped */
- PS_PLAYING,
- PS_PAUSED,
- PS_FORWARD,
- PS_BACKWARD,
- PS_IDLE, /* no file played */
- PS_MAX = PS_IDLE
- }playing_state_t;
- #endif