diff options
author | Dave Chapman <dave@dchapman.com> | 2005-09-22 18:47:04 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-09-22 18:47:04 +0000 |
commit | 711b2e3c886c52e04cfa3ed810f4a2ad688b5cf8 (patch) | |
tree | c703258d3869a17156259f5e8e9415337745c922 /apps/codecs/libalac/stream.h | |
parent | 025873b3acedd0fbc58b89f5d4a4e9437522a9ab (diff) | |
download | rockbox-711b2e3c886c52e04cfa3ed810f4a2ad688b5cf8.tar.gz rockbox-711b2e3c886c52e04cfa3ed810f4a2ad688b5cf8.zip |
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
Diffstat (limited to 'apps/codecs/libalac/stream.h')
-rw-r--r-- | apps/codecs/libalac/stream.h | 30 |
1 files changed, 30 insertions, 0 deletions
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 @@ | |||
1 | #ifndef STREAM_H | ||
2 | #define STREAM_H | ||
3 | |||
4 | /* stream.h */ | ||
5 | |||
6 | #include <stdint.h> | ||
7 | |||
8 | typedef struct stream_tTAG stream_t; | ||
9 | |||
10 | void stream_read(stream_t *stream, size_t len, void *buf); | ||
11 | |||
12 | int32_t stream_read_int32(stream_t *stream); | ||
13 | uint32_t stream_read_uint32(stream_t *stream); | ||
14 | |||
15 | int16_t stream_read_int16(stream_t *stream); | ||
16 | uint16_t stream_read_uint16(stream_t *stream); | ||
17 | |||
18 | int8_t stream_read_int8(stream_t *stream); | ||
19 | uint8_t stream_read_uint8(stream_t *stream); | ||
20 | |||
21 | void stream_skip(stream_t *stream, size_t skip); | ||
22 | |||
23 | int stream_eof(stream_t *stream); | ||
24 | |||
25 | stream_t *stream_create_file(FILE *file, | ||
26 | int bigendian); | ||
27 | void stream_destroy(stream_t *stream); | ||
28 | |||
29 | #endif /* STREAM_H */ | ||
30 | |||