summaryrefslogtreecommitdiff
path: root/apps/codecs/alac.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-02-10 16:34:16 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-02-10 16:34:16 +0000
commit97f369a5876762a6f4181a8b44c85cb894ebc5f3 (patch)
treecb604ca0ee2fac52bf92635a1c136f1f97f64918 /apps/codecs/alac.c
parentce3b774b212defb26f166d77251a11ce14cec73e (diff)
downloadrockbox-97f369a5876762a6f4181a8b44c85cb894ebc5f3.tar.gz
rockbox-97f369a5876762a6f4181a8b44c85cb894ebc5f3.zip
SWCODEC: Annoying neatness update. Use intptr_t for codec_configure_callback and dsp_configure and stop all the silly type casting of intergral types to pointers to set dsp configuration and watermarks. Shouldn't have any effect on already compiled codecs at all. Will fix any important patches in the tracker so they compile.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12259 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/alac.c')
-rw-r--r--apps/codecs/alac.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/codecs/alac.c b/apps/codecs/alac.c
index cfa713a29a..ca62538a66 100644
--- a/apps/codecs/alac.c
+++ b/apps/codecs/alac.c
@@ -42,11 +42,11 @@ enum codec_status codec_main(void)
42 int retval; 42 int retval;
43 43
44 /* Generic codec initialisation */ 44 /* Generic codec initialisation */
45 ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); 45 ci->configure(CODEC_SET_FILEBUF_WATERMARK, 1024*512);
46 ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*128)); 46 ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, 1024*128);
47 47
48 ci->configure(DSP_SET_STEREO_MODE, (int *)STEREO_NONINTERLEAVED); 48 ci->configure(DSP_SET_STEREO_MODE, STEREO_NONINTERLEAVED);
49 ci->configure(DSP_SET_SAMPLE_DEPTH, (int *)(ALAC_OUTPUT_DEPTH-1)); 49 ci->configure(DSP_SET_SAMPLE_DEPTH, ALAC_OUTPUT_DEPTH-1);
50 50
51 next_track: 51 next_track:
52 52
@@ -59,7 +59,7 @@ enum codec_status codec_main(void)
59 while (!*ci->taginfo_ready && !ci->stop_codec) 59 while (!*ci->taginfo_ready && !ci->stop_codec)
60 ci->sleep(1); 60 ci->sleep(1);
61 61
62 ci->configure(DSP_SWITCH_FREQUENCY, (long *)(ci->id3->frequency)); 62 ci->configure(DSP_SWITCH_FREQUENCY, ci->id3->frequency);
63 codec_set_replaygain(ci->id3); 63 codec_set_replaygain(ci->id3);
64 64
65 stream_create(&input_stream,ci); 65 stream_create(&input_stream,ci);