Invoke the "resampling" filter only if the target sampling rate is really different from the file's current sampling rate.
This commit is contained in:
parent
9e75a20158
commit
c1cde1acd8
@ -583,7 +583,10 @@ void ProcessingDialog::startNextJob(void)
|
|||||||
|
|
||||||
if((m_settings->samplingRate() > 0) && !nativeResampling)
|
if((m_settings->samplingRate() > 0) && !nativeResampling)
|
||||||
{
|
{
|
||||||
thread->addFilter(new ResampleFilter(SettingsModel::samplingRates[m_settings->samplingRate()]));
|
if(SettingsModel::samplingRates[m_settings->samplingRate()] != currentFile.formatAudioSamplerate() || currentFile.formatAudioSamplerate() == 0)
|
||||||
|
{
|
||||||
|
thread->addFilter(new ResampleFilter(SettingsModel::samplingRates[m_settings->samplingRate()]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if((m_settings->toneAdjustBass() != 0) || (m_settings->toneAdjustTreble() != 0))
|
if((m_settings->toneAdjustBass() != 0) || (m_settings->toneAdjustTreble() != 0))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user