summaryrefslogtreecommitdiff
path: root/codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'codec.h')
-rw-r--r--codec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/codec.h b/codec.h
index 731e3363..994ca53f 100644
--- a/codec.h
+++ b/codec.h
@@ -8,12 +8,14 @@ typedef struct {
int channels;
int dataSize;
int samplesPerSecond;
+ float duration;
} fileinfo_t;
typedef struct codec_s {
fileinfo_t info;
int (*init) (const char *fname);
void (*free) (void);
+ // player is responsible for starting next song if -1 is returned
int (*read) (char *bytes, int size);
} codec_t;