#ifndef _MUSIC_TSK_H_
#define _MUSIC_TSK_H_


#define MUSIC_QUERY_LEN     4

#define MUSIC_EVENT_NONE            0
#define MUSIC_EVENT_PLAY_FILE       0x1000  // + םמלונ פאיכא
#define MUSIC_EVENT_PLAY_FILE_001   (MUSIC_EVENT_PLAY_FILE + 1)
#define MUSIC_EVENT_PLAY_FILE_002   (MUSIC_EVENT_PLAY_FILE + 2)
#define MUSIC_EVENT_PLAY_FILE_003   (MUSIC_EVENT_PLAY_FILE + 3)
#define MUSIC_EVENT_PLAY_FILE_004   (MUSIC_EVENT_PLAY_FILE + 4)
#define MUSIC_EVENT_PLAY_FILE_005   (MUSIC_EVENT_PLAY_FILE + 5)
#define MUSIC_EVENT_PLAY_FILE_006   (MUSIC_EVENT_PLAY_FILE + 6)
#define MUSIC_EVENT_PLAY_FILE_007   (MUSIC_EVENT_PLAY_FILE + 7)
#define MUSIC_EVENT_PLAY_FILE_008   (MUSIC_EVENT_PLAY_FILE + 8)
#define MUSIC_EVENT_PLAY_FILE_009   (MUSIC_EVENT_PLAY_FILE + 9)
#define MUSIC_EVENT_PLAY_FILE_010   (MUSIC_EVENT_PLAY_FILE + 10)
#define MUSIC_EVENT_PLAY_FILE_011   (MUSIC_EVENT_PLAY_FILE + 11)
#define MUSIC_EVENT_PLAY_FILE_012   (MUSIC_EVENT_PLAY_FILE + 12)
#define MUSIC_EVENT_PLAY_FILE_013   (MUSIC_EVENT_PLAY_FILE + 13)
#define MUSIC_EVENT_PLAY_FILE_014   (MUSIC_EVENT_PLAY_FILE + 14)
#define MUSIC_EVENT_PLAY_FILE_015   (MUSIC_EVENT_PLAY_FILE + 15)
#define MUSIC_EVENT_PLAY_FILE_016   (MUSIC_EVENT_PLAY_FILE + 16)
#define MUSIC_EVENT_PLAY_FILE_017   (MUSIC_EVENT_PLAY_FILE + 17)
#define MUSIC_EVENT_PLAY_FILE_018   (MUSIC_EVENT_PLAY_FILE + 18)
#define MUSIC_EVENT_PLAY_FILE_019   (MUSIC_EVENT_PLAY_FILE + 19)

#define MUSIC_FILE_HARDWARE_CHECKOUT       1


#define FAT_STATUS_NOCONN   0
#define FAT_STATUS_EMPTY    1
#define FAT_STATUS_ERROR    2
#define FAT_STATUS_OK       3

#define MUSIC_STATUS_STOPPED    0
#define MUSIC_STATUS_PLAYING    1

extern CPU_INT32U fat_status;
extern CPU_INT08U music_status;



extern void InitMusicTask(void);
extern void PostMusicEvent(int event);
extern int IsMusicPlaying(void);
extern void MusicCanselPlay(void);

#endif // _MUSIC_TSK_H_
