From 711b2e3c886c52e04cfa3ed810f4a2ad688b5cf8 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 22 Sep 2005 18:47:04 +0000 Subject: Initial (unmodified - for reference) import of David Hammerton's Apple Lossless (ALAC) decoder from http://crazney.net/programs/itunes/alac.html git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7541 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libalac/stream.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apps/codecs/libalac/stream.h (limited to 'apps/codecs/libalac/stream.h') diff --git a/apps/codecs/libalac/stream.h b/apps/codecs/libalac/stream.h new file mode 100644 index 0000000000..31f93d9059 --- /dev/null +++ b/apps/codecs/libalac/stream.h @@ -0,0 +1,30 @@ +#ifndef STREAM_H +#define STREAM_H + +/* stream.h */ + +#include + +typedef struct stream_tTAG stream_t; + +void stream_read(stream_t *stream, size_t len, void *buf); + +int32_t stream_read_int32(stream_t *stream); +uint32_t stream_read_uint32(stream_t *stream); + +int16_t stream_read_int16(stream_t *stream); +uint16_t stream_read_uint16(stream_t *stream); + +int8_t stream_read_int8(stream_t *stream); +uint8_t stream_read_uint8(stream_t *stream); + +void stream_skip(stream_t *stream, size_t skip); + +int stream_eof(stream_t *stream); + +stream_t *stream_create_file(FILE *file, + int bigendian); +void stream_destroy(stream_t *stream); + +#endif /* STREAM_H */ + -- cgit v1.2.3