summaryrefslogtreecommitdiff
path: root/codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'codec.h')
-rw-r--r--codec.h5
1 files changed, 4 insertions, 1 deletions
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 <stdint.h>
+//#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);