diff options
author | quou <quou@disroot.org> | 2024-06-03 21:05:14 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-06-03 21:05:22 +1000 |
commit | 6589107006fd4fc06bdb7d02cb4b1eef45395458 (patch) | |
tree | af196448b28aa4a1ec612e2c1b1578465c203c12 /library.h | |
parent | 62b4a3ededd237f4b4850d91c052585e2f687499 (diff) |
Basic audio playback with pulseaudio.
Diffstat (limited to 'library.h')
-rw-r--r-- | library.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |