summaryrefslogtreecommitdiff
path: root/library.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-06-04 21:42:04 +1000
committerquou <quou@disroot.org>2024-06-04 21:42:04 +1000
commit557e07876de0086b70e301b104547bf35ec57959 (patch)
treeb2c9923ef989ea38d185d4598764a060c18f298e /library.h
parent6589107006fd4fc06bdb7d02cb4b1eef45395458 (diff)
Loading album art, seeking, pause/play.
Diffstat (limited to 'library.h')
-rw-r--r--library.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/library.h b/library.h
index 1397c15..81ce96b 100644
--- a/library.h
+++ b/library.h
@@ -23,8 +23,11 @@ typedef struct {
seek,
samples,
channels,
- play
+ play,
+ has_art
;
+ unsigned long long cs, ms;
+ unsigned cover[album_cover_w * album_cover_h];
} Player;
void build_library(
@@ -35,6 +38,8 @@ void build_library(
int get_song_meta(const char* path, Song* s);
void play_song(Player* p, Song* song);
+void play_seek(Player* p, float v);
void init_player(Player* p);
+void deinit_player(Player* p);
#endif