Files
player/Project/Src/MyWinApp/mywin_music.h
2025-07-05 19:47:28 +08:00

61 lines
948 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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