61 lines
948 B
C
61 lines
948 B
C
#ifndef MYWIN_MUSIC_H__
|
||
#define MYWIN_MUSIC_H__
|
||
|
||
|
||
|
||
|
||
|
||
typedef struct
|
||
{
|
||
u8 *data;
|
||
u32 dataSize;
|
||
}DataInfo_Struct;
|
||
|
||
|
||
|
||
typedef struct
|
||
{
|
||
WIN_TouchWinStruct win;
|
||
char *title;
|
||
u8 *icon; //图标
|
||
u32 selectTxtColor;
|
||
u32 txtColor;
|
||
u32 selectRectColor;
|
||
u32 rectColor;
|
||
int timerId;
|
||
DataInfo_Struct mp3Data;
|
||
int totsec;
|
||
int cursec;
|
||
char mp3_title[50];
|
||
char mp3_artist[50];
|
||
char mp3_file_name[300];
|
||
|
||
int done; //1,播放结束
|
||
WIN_WorkFunStruct *work; //工作结构体
|
||
int work_ret; //工作函数的返回值
|
||
|
||
}WIN_MusicStruct;
|
||
|
||
|
||
|
||
|
||
WIN_MusicStruct *WIN_CreatMusic (WIN_WindowStruct *base,
|
||
void (*msgLoop)(struct _WIN_WindowStruct *win,WIN_MsgStruct *msg),
|
||
int x,int y,int x_size,int y_size);
|
||
|
||
|
||
void WIN_DeleteMusic (WIN_MusicStruct *music );
|
||
|
||
|
||
|
||
|
||
//消息框的消息处理函数
|
||
void MUSIC_defaultMsgLoop (WIN_MusicStruct *music,WIN_MsgStruct *msg);
|
||
|
||
WIN_MusicStruct *MUSIC_PlaySong (WIN_WindowStruct *base,char *name);
|
||
|
||
|
||
#endif
|
||
|
||
|