1 /** 2 * @file lv_demo_music.h 3 * 4 */ 5 6 #ifndef LV_DEMO_MUSIC_H 7 #define LV_DEMO_MUSIC_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 #include "../lv_demos.h" 17 18 #if LV_USE_DEMO_MUSIC 19 20 /********************* 21 * DEFINES 22 *********************/ 23 24 #if LV_DEMO_MUSIC_LARGE 25 # define LV_DEMO_MUSIC_HANDLE_SIZE 40 26 #else 27 # define LV_DEMO_MUSIC_HANDLE_SIZE 20 28 #endif 29 30 /********************** 31 * TYPEDEFS 32 **********************/ 33 34 /********************** 35 * GLOBAL PROTOTYPES 36 **********************/ 37 38 void lv_demo_music(void); 39 void lv_demo_music_close(void); 40 41 const char * _lv_demo_music_get_title(uint32_t track_id); 42 const char * _lv_demo_music_get_artist(uint32_t track_id); 43 const char * _lv_demo_music_get_genre(uint32_t track_id); 44 uint32_t _lv_demo_music_get_track_length(uint32_t track_id); 45 46 /********************** 47 * MACROS 48 **********************/ 49 50 #endif /*LV_USE_DEMO_MUSIC*/ 51 52 #ifdef __cplusplus 53 } /* extern "C" */ 54 #endif 55 56 #endif /*LV_DEMO_MUSIC_H*/ 57