diff options
author | waker <wakeroid@gmail.com> | 2009-07-03 21:44:27 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-07-03 21:44:27 +0200 |
commit | ea3c1d9b0351effebcae6925650a0d5060103901 (patch) | |
tree | 94756ea3e5662292c1b196cfbdc2f509396a235d /codec.h |
initial proto
Diffstat (limited to 'codec.h')
-rw-r--r-- | codec.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/codec.h b/codec.h new file mode 100644 index 00000000..731e3363 --- /dev/null +++ b/codec.h @@ -0,0 +1,22 @@ +#ifndef __CODEC_H +#define __CODEC_H + +#include <stdint.h> + +typedef struct { + int bitsPerSample; + int channels; + int dataSize; + int samplesPerSecond; +} fileinfo_t; + +typedef struct codec_s { + fileinfo_t info; + int (*init) (const char *fname); + void (*free) (void); + int (*read) (char *bytes, int size); +} codec_t; + +codec_t *get_codec_for_file (const char *fname); + +#endif // __CODEC_H |