forked from len0rd/rockbox
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
This commit is contained in:
parent
ce3b774b21
commit
97f369a587
19 changed files with 100 additions and 100 deletions
|
|
@ -1216,8 +1216,8 @@ enum codec_status codec_main(void)
|
|||
int nSamplesToRender = 0;
|
||||
|
||||
/* Generic codec initialisation */
|
||||
ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512));
|
||||
ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*256));
|
||||
ci->configure(CODEC_SET_FILEBUF_WATERMARK, 1024*512);
|
||||
ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, 1024*256);
|
||||
|
||||
next_track:
|
||||
if (codec_init()) {
|
||||
|
|
@ -1246,11 +1246,11 @@ next_track:
|
|||
|
||||
|
||||
/* Make use of 44.1khz */
|
||||
ci->configure(DSP_SWITCH_FREQUENCY, (long *)44100);
|
||||
ci->configure(DSP_SWITCH_FREQUENCY, 44100);
|
||||
/* Sample depth is 28 bit host endian */
|
||||
ci->configure(DSP_SET_SAMPLE_DEPTH, (long *)28);
|
||||
ci->configure(DSP_SET_SAMPLE_DEPTH, 28);
|
||||
/* Mono output */
|
||||
ci->configure(DSP_SET_STEREO_MODE, (int *)STEREO_MONO);
|
||||
ci->configure(DSP_SET_STEREO_MODE, STEREO_MONO);
|
||||
|
||||
|
||||
/* Set the elapsed time to the current subsong (in seconds) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue