summaryrefslogtreecommitdiff
path: root/library.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-06-03 21:05:14 +1000
committerquou <quou@disroot.org>2024-06-03 21:05:22 +1000
commit6589107006fd4fc06bdb7d02cb4b1eef45395458 (patch)
treeaf196448b28aa4a1ec612e2c1b1578465c203c12 /library.h
parent62b4a3ededd237f4b4850d91c052585e2f687499 (diff)
Basic audio playback with pulseaudio.
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