From 008c368c87873615ccbe8bc0b3482d93ae15779d Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Sat, 2 Jan 2010 20:54:55 +0000 Subject: 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 --- apps/codecs/libm4a/m4a.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/codecs/libm4a/m4a.c') 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) -- cgit v1.1