summaryrefslogtreecommitdiff
path: root/apps/codecs/libm4a/m4a.c
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2010-01-02 20:54:55 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2010-01-02 20:54:55 +0000
commit008c368c87873615ccbe8bc0b3482d93ae15779d (patch)
treec93f268e7dba1603a76eaddb7f7002e9291fbb7a /apps/codecs/libm4a/m4a.c
parent420b4e4be905c0e0930ec74201e680defb091234 (diff)
downloadrockbox-008c368c87873615ccbe8bc0b3482d93ae15779d.zip
rockbox-008c368c87873615ccbe8bc0b3482d93ae15779d.tar.gz
rockbox-008c368c87873615ccbe8bc0b3482d93ae15779d.tar.bz2
rockbox-008c368c87873615ccbe8bc0b3482d93ae15779d.tar.xz
Commit first part of FS#10832 by Juliusz Chroboczek. Allows playback of unstreamable AAC/ALAC files by stepping through the file to find the index, potientially rebuffering. This is likely to impose a battery life hit on files which are unstreamable and not much smaller then the buffer, but should not impact streamable files at all.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24147 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libm4a/m4a.c')
-rw-r--r--apps/codecs/libm4a/m4a.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/codecs/libm4a/m4a.c b/apps/codecs/libm4a/m4a.c
index 92e619d..42295e7 100644
--- a/apps/codecs/libm4a/m4a.c
+++ b/apps/codecs/libm4a/m4a.c
@@ -103,7 +103,12 @@ uint8_t stream_read_uint8(stream_t *stream)
void stream_skip(stream_t *stream, size_t skip)
{
- stream->ci->advance_buffer(skip);
+ stream->ci->advance_buffer(skip);
+}
+
+void stream_seek(stream_t *stream, size_t offset)
+{
+ stream->ci->seek_buffer(offset);
}
int stream_eof(stream_t *stream)