forked from len0rd/rockbox
Fix bug with FLAC and ALAC output being half the correct volume. The DSP_SET_SAMPLE_DEPTH function expects needs clarifying or changing - it seems to expect one less than the number of bits in cases where the depth is greater than the native depth (16 bits).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7692 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
29c7da9e69
commit
fca6b63ef7
2 changed files with 3 additions and 3 deletions
|
@ -64,8 +64,8 @@ enum codec_status codec_start(struct codec_api* api)
|
|||
ci->configure(CODEC_DSP_ENABLE, (bool *)true);
|
||||
ci->configure(DSP_DITHER, (bool *)false);
|
||||
ci->configure(DSP_SET_STEREO_MODE, (int *)STEREO_NONINTERLEAVED);
|
||||
ci->configure(DSP_SET_SAMPLE_DEPTH, (int *)(28));
|
||||
|
||||
ci->configure(DSP_SET_SAMPLE_DEPTH, (int *)(ALAC_OUTPUT_DEPTH-1));
|
||||
|
||||
next_track:
|
||||
|
||||
if (codec_init(api)) {
|
||||
|
|
|
@ -240,7 +240,7 @@ enum codec_status codec_start(struct codec_api* api)
|
|||
ci->configure(CODEC_DSP_ENABLE, (bool *)true);
|
||||
ci->configure(DSP_DITHER, (bool *)false);
|
||||
ci->configure(DSP_SET_STEREO_MODE, (long *)STEREO_NONINTERLEAVED);
|
||||
ci->configure(DSP_SET_SAMPLE_DEPTH, (int *)(28));
|
||||
ci->configure(DSP_SET_SAMPLE_DEPTH, (int *)(FLAC_OUTPUT_DEPTH-1));
|
||||
|
||||
next_track:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue