diff options
Diffstat (limited to 'apps/codecs/adx.c')
-rw-r--r-- | apps/codecs/adx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs/adx.c b/apps/codecs/adx.c index 85e55a4c38..19d8110da6 100644 --- a/apps/codecs/adx.c +++ b/apps/codecs/adx.c | |||
@@ -54,8 +54,8 @@ enum codec_status codec_main(void) | |||
54 | 54 | ||
55 | /* Generic codec initialisation */ | 55 | /* Generic codec initialisation */ |
56 | /* we only render 16 bits */ | 56 | /* we only render 16 bits */ |
57 | ci->configure(DSP_SET_SAMPLE_DEPTH, (long *)16); | 57 | ci->configure(DSP_SET_SAMPLE_DEPTH, 16); |
58 | /*ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*256));*/ | 58 | /*ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, 1024*256);*/ |
59 | 59 | ||
60 | next_track: | 60 | next_track: |
61 | DEBUGF("ADX: next_track\n"); | 61 | DEBUGF("ADX: next_track\n"); |
@@ -73,7 +73,7 @@ next_track: | |||
73 | 73 | ||
74 | /* Read the entire file (or as much as possible) */ | 74 | /* Read the entire file (or as much as possible) */ |
75 | DEBUGF("ADX: request initial buffer\n"); | 75 | DEBUGF("ADX: request initial buffer\n"); |
76 | ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(ci->filesize)); | 76 | ci->configure(CODEC_SET_FILEBUF_WATERMARK, ci->filesize); |
77 | ci->seek_buffer(0); | 77 | ci->seek_buffer(0); |
78 | buf = ci->request_buffer(&n, ci->filesize); | 78 | buf = ci->request_buffer(&n, ci->filesize); |
79 | if (!buf || n < 0x38) { | 79 | if (!buf || n < 0x38) { |
@@ -155,11 +155,11 @@ next_track: | |||
155 | bufoff = chanstart; | 155 | bufoff = chanstart; |
156 | 156 | ||
157 | /* setup pcm buffer format */ | 157 | /* setup pcm buffer format */ |
158 | ci->configure(DSP_SWITCH_FREQUENCY, (long *)(ci->id3->frequency)); | 158 | ci->configure(DSP_SWITCH_FREQUENCY, ci->id3->frequency); |
159 | if (channels == 2) { | 159 | if (channels == 2) { |
160 | ci->configure(DSP_SET_STEREO_MODE, (long *)STEREO_INTERLEAVED); | 160 | ci->configure(DSP_SET_STEREO_MODE, STEREO_INTERLEAVED); |
161 | } else if (channels == 1) { | 161 | } else if (channels == 1) { |
162 | ci->configure(DSP_SET_STEREO_MODE, (long *)STEREO_MONO); | 162 | ci->configure(DSP_SET_STEREO_MODE, STEREO_MONO); |
163 | } else { | 163 | } else { |
164 | DEBUGF("ADX CODEC_ERROR: more than 2 channels\n"); | 164 | DEBUGF("ADX CODEC_ERROR: more than 2 channels\n"); |
165 | return CODEC_ERROR; | 165 | return CODEC_ERROR; |