Searched refs:track_id (Results 1 – 5 of 5) sorted by relevance
/lvgl-3.7.0/demos/music/ |
D | lv_demo_music.c | 149 const char * _lv_demo_music_get_title(uint32_t track_id) in _lv_demo_music_get_title() argument 151 if(track_id >= sizeof(title_list) / sizeof(title_list[0])) return NULL; in _lv_demo_music_get_title() 152 return title_list[track_id]; in _lv_demo_music_get_title() 155 const char * _lv_demo_music_get_artist(uint32_t track_id) in _lv_demo_music_get_artist() argument 157 if(track_id >= sizeof(artist_list) / sizeof(artist_list[0])) return NULL; in _lv_demo_music_get_artist() 158 return artist_list[track_id]; in _lv_demo_music_get_artist() 161 const char * _lv_demo_music_get_genre(uint32_t track_id) in _lv_demo_music_get_genre() argument 163 if(track_id >= sizeof(genre_list) / sizeof(genre_list[0])) return NULL; in _lv_demo_music_get_genre() 164 return genre_list[track_id]; in _lv_demo_music_get_genre() 167 uint32_t _lv_demo_music_get_track_length(uint32_t track_id) in _lv_demo_music_get_track_length() argument [all …]
|
D | lv_demo_music_list.c | 25 static lv_obj_t * add_list_btn(lv_obj_t * parent, uint32_t track_id); 119 uint32_t track_id; in _lv_demo_music_list_create() local 120 for(track_id = 0; _lv_demo_music_get_title(track_id); track_id++) { in _lv_demo_music_list_create() 121 add_list_btn(list, track_id); in _lv_demo_music_list_create() 145 void _lv_demo_music_list_btn_check(uint32_t track_id, bool state) in _lv_demo_music_list_btn_check() argument 147 lv_obj_t * btn = lv_obj_get_child(list, track_id); in _lv_demo_music_list_btn_check() 165 static lv_obj_t * add_list_btn(lv_obj_t * parent, uint32_t track_id) in add_list_btn() argument 167 uint32_t t = _lv_demo_music_get_track_length(track_id); in add_list_btn() 170 const char * title = _lv_demo_music_get_title(track_id); in add_list_btn() 171 const char * artist = _lv_demo_music_get_artist(track_id); in add_list_btn() [all …]
|
D | lv_demo_music.h | 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);
|
D | lv_demo_music_main.c | 90 static uint32_t track_id; variable 304 uint32_t id = track_id; in _lv_demo_music_album_next() 348 lv_slider_set_range(slider_obj, 0, _lv_demo_music_get_track_length(track_id)); in _lv_demo_music_resume() 487 lv_label_set_text(title_label, _lv_demo_music_get_title(track_id)); in create_title_box() 493 lv_label_set_text(artist_label, _lv_demo_music_get_artist(track_id)); in create_title_box() 498 lv_label_set_text(genre_label, _lv_demo_music_get_genre(track_id)); in create_title_box() 664 if(id == track_id) return; in track_load() 666 if((track_id + 1) % ACTIVE_TRACK_CNT == id) next = true; in track_load() 668 _lv_demo_music_list_btn_check(track_id, false); in track_load() 670 track_id = id; in track_load() [all …]
|
D | lv_demo_music_list.h | 33 void _lv_demo_music_list_btn_check(uint32_t track_id, bool state);
|