From 6589107006fd4fc06bdb7d02cb4b1eef45395458 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 3 Jun 2024 21:05:14 +1000 Subject: Basic audio playback with pulseaudio. --- library.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'library.h') 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 -- cgit v1.2.3-54-g00ecf