Browse Source

Set resampler rates when switching back from non stretched mode

master
xenakios 6 years ago
parent
commit
2cea9feefc
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Source/PS_Source/StretchSource.cpp

+ 2
- 0
Source/PS_Source/StretchSource.cpp View File

@@ -229,6 +229,8 @@ void StretchAudioSource::setPreviewDry(bool b)
if (m_cs.tryEnter())
{
m_resampler->Reset();
if (m_preview_dry == true && b == false && m_inputfile->info.nsamples>0)
m_resampler->SetRates(m_inputfile->info.samplerate, m_outsr);
m_preview_dry = b;
++m_param_change_count;
m_cs.exit();


Loading…
Cancel
Save