mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Added ReplayGain support to WavPack, including a small fix to dsp.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7237 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
49775a4602
commit
c5ebc8e4e4
3 changed files with 36 additions and 11 deletions
|
|
@ -77,12 +77,14 @@ enum codec_status codec_start(struct codec_api* api)
|
|||
while (!*rb->taginfo_ready && !ci->stop_codec)
|
||||
ci->sleep(1);
|
||||
|
||||
if (ci->id3->frequency != NATIVE_FREQUENCY) {
|
||||
ci->configure(DSP_SET_FREQUENCY, (long *)(ci->id3->frequency));
|
||||
ci->configure(CODEC_DSP_ENABLE, (bool *)true);
|
||||
} else {
|
||||
ci->configure(CODEC_DSP_ENABLE, (bool *)false);
|
||||
if (ci->id3->frequency != NATIVE_FREQUENCY ||
|
||||
ci->global_settings->replaygain) {
|
||||
ci->configure(CODEC_DSP_ENABLE, (bool *)true);
|
||||
ci->configure(DSP_SET_FREQUENCY, (long *)(ci->id3->frequency));
|
||||
codec_set_replaygain(rb->id3);
|
||||
}
|
||||
else
|
||||
ci->configure(CODEC_DSP_ENABLE, (bool *)false);
|
||||
|
||||
/* Create a decoder instance */
|
||||
wpc = WavpackOpenFileInput (read_callback, error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue