From cdcd651e7d3e52dbf484a2b8fc1ac8e1a91ca8a5 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Mon, 20 Jun 2005 12:24:02 +0000 Subject: [PATCH] Musepack files should play (poorly) now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6776 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/codecmpc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/plugins/codecmpc.c b/apps/plugins/codecmpc.c index 3fe35705eb..19eb518687 100644 --- a/apps/plugins/codecmpc.c +++ b/apps/plugins/codecmpc.c @@ -41,10 +41,9 @@ seek_impl(void *data, mpc_int32_t offset) { struct codec_api* ci = (struct codec_api*)data; - /* We don't support seeking yet. */ - (void)ci; - (void)offset; - return 0; + /* WARNING: assumes we don't need to skip too far into the past, + this might not be supported by the buffering layer yet */ + return ci->seek_buffer(offset); } mpc_int32_t @@ -82,7 +81,8 @@ shift_signed(MPC_SAMPLE_FORMAT val, int shift) #define OUTPUT_BUFFER_SIZE 65536 /* Must be an integer multiple of 4. */ unsigned char OutputBuffer[OUTPUT_BUFFER_SIZE]; -MPC_SAMPLE_FORMAT sample_buffer[MPC_DECODER_BUFFER_LENGTH]; +/* temporary, we probably have better use for iram than this */ +MPC_SAMPLE_FORMAT sample_buffer[MPC_DECODER_BUFFER_LENGTH] IDATA_ATTR; unsigned char *OutputPtr=OutputBuffer; const unsigned char *OutputBufferEnd=OutputBuffer+OUTPUT_BUFFER_SIZE;