summaryrefslogtreecommitdiff
path: root/apps/codecs/vorbis.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/vorbis.c')
-rw-r--r--apps/codecs/vorbis.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c
index 8ab4a95faa..5f08fb5eeb 100644
--- a/apps/codecs/vorbis.c
+++ b/apps/codecs/vorbis.c
@@ -83,13 +83,13 @@ bool vorbis_set_codec_parameters(OggVorbis_File *vf)
83 return false; 83 return false;
84 } 84 }
85 85
86 ci->configure(DSP_SWITCH_FREQUENCY, (int *)ci->id3->frequency); 86 ci->configure(DSP_SWITCH_FREQUENCY, ci->id3->frequency);
87 codec_set_replaygain(ci->id3); 87 codec_set_replaygain(ci->id3);
88 88
89 if (vi->channels == 2) { 89 if (vi->channels == 2) {
90 ci->configure(DSP_SET_STEREO_MODE, (int *)STEREO_NONINTERLEAVED); 90 ci->configure(DSP_SET_STEREO_MODE, STEREO_NONINTERLEAVED);
91 } else if (vi->channels == 1) { 91 } else if (vi->channels == 1) {
92 ci->configure(DSP_SET_STEREO_MODE, (int *)STEREO_MONO); 92 ci->configure(DSP_SET_STEREO_MODE, STEREO_MONO);
93 } 93 }
94 94
95 return true; 95 return true;
@@ -112,9 +112,9 @@ enum codec_status codec_main(void)
112 ogg_uint32_t vf_serialnos; 112 ogg_uint32_t vf_serialnos;
113 ogg_int64_t vf_pcmlengths[2]; 113 ogg_int64_t vf_pcmlengths[2];
114 114
115 ci->configure(DSP_SET_SAMPLE_DEPTH, (long *)24); 115 ci->configure(DSP_SET_SAMPLE_DEPTH, 24);
116 ci->configure(DSP_SET_CLIP_MAX, (long *)((1 << 24) - 1)); 116 ci->configure(DSP_SET_CLIP_MAX, (1 << 24) - 1);
117 ci->configure(DSP_SET_CLIP_MIN, (long *)-((1 << 24) - 1)); 117 ci->configure(DSP_SET_CLIP_MIN, -((1 << 24) - 1));
118 /* Note: These are sane defaults for these values. Perhaps 118 /* Note: These are sane defaults for these values. Perhaps
119 * they should be set differently based on quality setting 119 * they should be set differently based on quality setting
120 */ 120 */
@@ -122,7 +122,7 @@ enum codec_status codec_main(void)
122 /* The chunk size below is magic. If set any lower, resume 122 /* The chunk size below is magic. If set any lower, resume
123 * doesn't work properly (ov_raw_seek() does the wrong thing). 123 * doesn't work properly (ov_raw_seek() does the wrong thing).
124 */ 124 */
125 ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (long *)(1024*256)); 125 ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, 1024*256);
126 126
127/* We need to flush reserver memory every track load. */ 127/* We need to flush reserver memory every track load. */
128next_track: 128next_track: