summaryrefslogtreecommitdiff
path: root/codec.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-04 17:49:03 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-04 17:49:03 +0200
commit7bccab7d4a27e554259637f4ed23356519433549 (patch)
tree02fc9b9b7349053be3935f9a1b19e4e9906dc4e7 /codec.h
parentb3826e69941ff69f9da91679d087e6964bbc41f6 (diff)
playlist insertion WIP
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);