#ifndef library_h #define library_h #include "memory.h" typedef struct { char path[256]; char name[64]; char artist[64]; char album[64]; } Song; typedef struct { Song* songs; int* indices; int cap, cnt; } Library; typedef struct { Song* song; void* f; int seek, samples, channels, play ; } Player; void build_library( Arena* a, Library* lib, const char* path ); int get_song_meta(const char* path, Song* s); void play_song(Player* p, Song* song); void init_player(Player* p); #endif