const GBitmap * music_store_artwork(void)
The track's album art, as a 4-bit palettized bitmap.
Definition music_store.c:321
const char * music_store_title(void)
The song's title, or an empty string for none.
Definition music_store.c:276
void music_store_subscribe(void(*cb)(void))
Hand it the function to call when the track changes (the screen redraw).
Definition music_store.c:215
void music_store_deinit(void)
Frees the album art the store holds. Call it from the face's deinit.
Definition music_store.c:330
bool music_store_no_plugin(void)
Whether the phone said no plugin on it serves now playing.
Definition music_store.c:312
bool music_store_playing(void)
True while the track plays, and false while it is paused or nothing is playing.
Definition music_store.c:294
bool music_store_has_track(void)
Whether there is a track to show, paused or playing.
Definition music_store.c:303
void music_store_init(MusicConfig cfg, const MusicSeed *seed)
Start the store with its rules. Pass seed = NULL for normal use.
Definition music_store.c:224
const char * music_store_artist(void)
Who it is by, or an empty string for none.
Definition music_store.c:285
The rules a face hands the store.
Definition music_store.h:39
bool live
True takes the phone's readings and asks for them. False just keeps the seed for screenshots.
Definition music_store.h:40
Optional prefill, or pinned state when live = false.
Definition music_store.h:47
bool playing
True while it plays.
Definition music_store.h:50
const char * title
The song's title, or NULL for none.
Definition music_store.h:48
const char * artist
Who it is by, or NULL for none.
Definition music_store.h:49