diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2007-02-04 10:04:42 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2007-02-04 10:04:42 +0000 |
commit | 39bd2375fa6d4073a9f0b033db4b271406bc6a6f (patch) | |
tree | 85cf883f89cd0df68bb8d5a3bd4623d5a04badf9 | |
parent | 67ec6177a7ed1934cf2ef97f0863c07f40498cc8 (diff) | |
download | rockbox-39bd2375fa6d4073a9f0b033db4b271406bc6a6f.tar.gz rockbox-39bd2375fa6d4073a9f0b033db4b271406bc6a6f.zip |
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
-rw-r--r-- | apps/codecs/flac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c index 4202763962..90d782e685 100644 --- a/apps/codecs/flac.c +++ b/apps/codecs/flac.c | |||
@@ -428,7 +428,6 @@ enum codec_status codec_main(void) | |||
428 | ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); | 428 | ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); |
429 | ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*128)); | 429 | ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*128)); |
430 | 430 | ||
431 | ci->configure(DSP_SET_STEREO_MODE, (long *)STEREO_NONINTERLEAVED); | ||
432 | ci->configure(DSP_SET_SAMPLE_DEPTH, (int *)(FLAC_OUTPUT_DEPTH-1)); | 431 | ci->configure(DSP_SET_SAMPLE_DEPTH, (int *)(FLAC_OUTPUT_DEPTH-1)); |
433 | 432 | ||
434 | next_track: | 433 | next_track: |
@@ -452,6 +451,8 @@ enum codec_status codec_main(void) | |||
452 | ci->sleep(1); | 451 | ci->sleep(1); |
453 | 452 | ||
454 | ci->configure(DSP_SWITCH_FREQUENCY, (long *)(ci->id3->frequency)); | 453 | ci->configure(DSP_SWITCH_FREQUENCY, (long *)(ci->id3->frequency)); |
454 | ci->configure(DSP_SET_STEREO_MODE, (long *) (fc.channels == 1 | ||
455 | ? STEREO_MONO : STEREO_NONINTERLEAVED)); | ||
455 | codec_set_replaygain(ci->id3); | 456 | codec_set_replaygain(ci->id3); |
456 | 457 | ||
457 | if (samplesdone) { | 458 | if (samplesdone) { |