player_bg.h 482 B

12345678910111213141516171819202122232425262728
  1. #ifndef __PLAYER_BG_H__
  2. #define __PLAYER_BG_H__
  3. #include <rtthread.h>
  4. enum PLAYER_REQUEST_TYPE
  5. {
  6. PLAYER_REQUEST_PLAY_SINGLE_FILE,
  7. PLAYER_REQUEST_PLAY_LIST,
  8. PLAYER_REQUEST_STOP,
  9. PLAYER_REQUEST_NEXT,
  10. PLAYER_REQUEST_PREV,
  11. };
  12. struct player_request
  13. {
  14. enum PLAYER_REQUEST_TYPE type;
  15. char fn[64];
  16. };
  17. rt_bool_t player_is_playing(void);
  18. void player_stop(void);
  19. void player_play_list(const char** list);
  20. void player_play_file(const char* fn);
  21. #endif