forked from len0rd/rockbox
Fix playback of mono FLAC files, so they don't play in the left channel only.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12188 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
67ec6177a7
commit
39bd2375fa
1 changed files with 2 additions and 1 deletions
|
|
@ -428,7 +428,6 @@ enum codec_status codec_main(void)
|
||||||
ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512));
|
ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512));
|
||||||
ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*128));
|
ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*128));
|
||||||
|
|
||||||
ci->configure(DSP_SET_STEREO_MODE, (long *)STEREO_NONINTERLEAVED);
|
|
||||||
ci->configure(DSP_SET_SAMPLE_DEPTH, (int *)(FLAC_OUTPUT_DEPTH-1));
|
ci->configure(DSP_SET_SAMPLE_DEPTH, (int *)(FLAC_OUTPUT_DEPTH-1));
|
||||||
|
|
||||||
next_track:
|
next_track:
|
||||||
|
|
@ -452,6 +451,8 @@ enum codec_status codec_main(void)
|
||||||
ci->sleep(1);
|
ci->sleep(1);
|
||||||
|
|
||||||
ci->configure(DSP_SWITCH_FREQUENCY, (long *)(ci->id3->frequency));
|
ci->configure(DSP_SWITCH_FREQUENCY, (long *)(ci->id3->frequency));
|
||||||
|
ci->configure(DSP_SET_STEREO_MODE, (long *) (fc.channels == 1
|
||||||
|
? STEREO_MONO : STEREO_NONINTERLEAVED));
|
||||||
codec_set_replaygain(ci->id3);
|
codec_set_replaygain(ci->id3);
|
||||||
|
|
||||||
if (samplesdone) {
|
if (samplesdone) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue