summaryrefslogtreecommitdiff
path: root/library.h
diff options
context:
space:
mode:
Diffstat (limited to 'library.h')
-rw-r--r--library.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/library.h b/library.h
index e94c10a..1397c15 100644
--- a/library.h
+++ b/library.h
@@ -16,6 +16,17 @@ typedef struct {
int cap, cnt;
} Library;
+typedef struct {
+ Song* song;
+ void* f;
+ int
+ seek,
+ samples,
+ channels,
+ play
+ ;
+} Player;
+
void build_library(
Arena* a,
Library* lib,
@@ -23,5 +34,7 @@ void build_library(
);
int get_song_meta(const char* path, Song* s);
+void play_song(Player* p, Song* song);
+void init_player(Player* p);
#endif