summaryrefslogtreecommitdiff
path: root/codec.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-07-05 21:36:02 +0200
committerGravatar waker <wakeroid@gmail.com>2009-07-05 21:36:02 +0200
commita55523d7f3758d1fa46b8f8d063c57229db27bf3 (patch)
tree7c3dcc5cff415dac6d3a21857a407fddef210366 /codec.h
parent19208d2ef24773b6f50fc431628a575eae740a54 (diff)
[wip] multithreading
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;