do offline render regardless of pause state

This commit is contained in:
essej
2022-04-12 19:20:28 -04:00
parent 38cf79fec0
commit e2178da076
2 changed files with 6 additions and 2 deletions

View File

@ -568,7 +568,8 @@ String PaulstretchpluginAudioProcessor::offlineRender(OfflineRenderParams render
auto processor = std::make_shared<PaulstretchpluginAudioProcessor>(true);
processor->setNonRealtime(true);
processor->setStateFromTree(state);
double outsr{ renderpars.outsr };
double outsr{ renderpars.outsr };
if (outsr < 10.0) {
outsr = processor->getStretchSource()->getInfileSamplerate();
if (outsr < 10.0)
@ -584,6 +585,8 @@ String PaulstretchpluginAudioProcessor::offlineRender(OfflineRenderParams render
sanitizeTimeRange(t0, t1);
sc->setPlayRange({ t0,t1 });
*(processor->getBoolParameter(cpi_pause_enabled)) = false;
sc->setMainVolume(*processor->getFloatParameter(cpi_main_volume));
sc->setRate(*processor->getFloatParameter(cpi_stretchamount));
sc->setDryPlayrate(*processor->getFloatParameter(cpi_dryplayrate));