From 62b4a3ededd237f4b4850d91c052585e2f687499 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 2 Jun 2024 21:46:07 +1000 Subject: Switched to luigi, parsing out FLAC metadata. --- library.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'library.h') diff --git a/library.h b/library.h index 7c9e000..e94c10a 100644 --- a/library.h +++ b/library.h @@ -1,19 +1,27 @@ #ifndef library_h #define library_h -#include "config.h" +#include "memory.h" typedef struct { - char name[song_name_max]; - char file[song_filename_max]; + char path[256]; + char name[64]; + char artist[64]; + char album[64]; } Song; typedef struct { - Song songs[max_songs]; - int song_count; + Song* songs; + int* indices; + int cap, cnt; } Library; -void init_library(Library* l); -void build_library(Library* l, const char* path); +void build_library( + Arena* a, + Library* lib, + const char* path +); + +int get_song_meta(const char* path, Song* s); #endif -- cgit v1.2.3-54-g00ecf