mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-23 09:43:41 +08:00
1d14386b99
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
55 lines
986 B
C
55 lines
986 B
C
/**
|
|
* @file lv_demo_music.h
|
|
*
|
|
*/
|
|
|
|
#ifndef LV_DEMO_MUSIC_H
|
|
#define LV_DEMO_MUSIC_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*********************
|
|
* INCLUDES
|
|
*********************/
|
|
#include "../lv_demos.h"
|
|
|
|
#if LV_USE_DEMO_MUSIC
|
|
|
|
/*********************
|
|
* DEFINES
|
|
*********************/
|
|
|
|
#if LV_DEMO_MUSIC_LARGE
|
|
# define LV_DEMO_MUSIC_HANDLE_SIZE 40
|
|
#else
|
|
# define LV_DEMO_MUSIC_HANDLE_SIZE 20
|
|
#endif
|
|
|
|
/**********************
|
|
* TYPEDEFS
|
|
**********************/
|
|
|
|
/**********************
|
|
* GLOBAL PROTOTYPES
|
|
**********************/
|
|
|
|
void lv_demo_music(void);
|
|
const char * lv_demo_music_get_title(uint32_t track_id);
|
|
const char * lv_demo_music_get_artist(uint32_t track_id);
|
|
const char * lv_demo_music_get_genre(uint32_t track_id);
|
|
uint32_t lv_demo_music_get_track_length(uint32_t track_id);
|
|
|
|
/**********************
|
|
* MACROS
|
|
**********************/
|
|
|
|
#endif /*LV_USE_DEMO_MUSIC*/
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /*LV_DEMO_MUSIC_H*/
|