The active music store: holds what the phone is playing, owns the appmessage now playing channel, and asks the phone again at launch and whenever the link comes back. More...
#include "io/stores/music_store.h"#include "io/appmessage/appmessage.h"#include "io/appmessage/appmessage_features.h"#include "io/stores/system_store.h"#include "wire/music_art.h"#include "wire/music_track.h"Functions | |
| void | music_store_subscribe (void(*cb)(void)) |
| Hand it the function to call when the track changes (the screen redraw). | |
| void | music_store_init (MusicConfig cfg, const MusicSeed *seed) |
| Start the store with its rules. Pass seed = NULL for normal use. | |
| const char * | music_store_title (void) |
| The song's title, or an empty string for none. | |
| const char * | music_store_artist (void) |
| Who it is by, or an empty string for none. | |
| bool | music_store_playing (void) |
| True while the track plays, and false while it is paused or nothing is playing. | |
| bool | music_store_has_track (void) |
| Whether there is a track to show, paused or playing. | |
| bool | music_store_no_plugin (void) |
| Whether the phone said no plugin on it serves now playing. | |
| const GBitmap * | music_store_artwork (void) |
| The track's album art, as a 4-bit palettized bitmap. | |
| void | music_store_deinit (void) |
| Frees the album art the store holds. Call it from the face's deinit. | |
The active music store: holds what the phone is playing, owns the appmessage now playing channel, and asks the phone again at launch and whenever the link comes back.