From 7bccab7d4a27e554259637f4ed23356519433549 Mon Sep 17 00:00:00 2001 From: waker Date: Tue, 4 Aug 2009 17:49:03 +0200 Subject: playlist insertion WIP --- codec.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'codec.h') diff --git a/codec.h b/codec.h index 5e86cb78..68f29e54 100644 --- a/codec.h +++ b/codec.h @@ -2,6 +2,7 @@ #define __CODEC_H #include +//#include "playlist.h" typedef struct { int bitsPerSample; @@ -11,13 +12,15 @@ typedef struct { float position; } fileinfo_t; +struct playItem_s; + typedef struct codec_s { int (*init) (const char *fname, int track, float start, float end); void (*free) (void); // player is responsible for starting next song if -1 is returned int (*read) (char *bytes, int size); int (*seek) (float time); - int (*add) (const char *fname); + struct playItem_s * (*insert) (struct playItem_s *after, const char *fname); // after==NULL means "prepend to beginning" const char ** (*getexts) (void); int (*numvoices) (void); void (*mutevoice) (int voice, int mute); -- cgit v1.2.3