summaryrefslogtreecommitdiff
path: root/apps/codecs/wav.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-02 01:53:11 +0000
committerDave Chapman <dave@dchapman.com>2005-11-02 01:53:11 +0000
commit4faf0ce488f3842177af1e1db851f8781b6cb42a (patch)
tree22110d6ffeecc4007c12464e5e2fbceb241774b2 /apps/codecs/wav.c
parent62e9e8927f6048c6826110b386c2fdf58067d412 (diff)
Fix simulator builds - DEBUGF explicitly needs rb->
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7724 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/wav.c')
-rw-r--r--apps/codecs/wav.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c
index 3ec91054b5..21f1c4f09f 100644
--- a/apps/codecs/wav.c
+++ b/apps/codecs/wav.c
@@ -20,6 +20,8 @@
#include "codeclib.h"
#include "inttypes.h"
+struct codec_api* rb;
+
/* This codec support WAVE files with the following formats:
* - PCM, up to 32 bits, supporting 32 bits playback when useful.
* - ALAW and MULAW (16 bits compressed on 8 bits).
@@ -205,7 +207,7 @@ decode_dvi_adpcm(struct codec_api* ci,
/* this is the codec entry point */
enum codec_status codec_start(struct codec_api* api)
{
- struct codec_api* ci = api;
+ struct codec_api* ci;
uint32_t numbytes, bytesdone;
uint32_t totalsamples = 0;
uint16_t channels=0;
@@ -228,6 +230,9 @@ enum codec_status codec_start(struct codec_api* api)
/* Generic codec initialisation */
TEST_CODEC_API(api);
+ rb = api;
+ ci = api;
+
#ifdef USE_IRAM
ci->memcpy(iramstart, iramcopy, iramend-iramstart);
#endif