do offline render regardless of pause state
This commit is contained in:
parent
38cf79fec0
commit
e2178da076
@ -2145,7 +2145,7 @@ void FreeFilterComponent::updateParameterComponents()
|
||||
}
|
||||
|
||||
ParameterGroupComponent::ParameterGroupComponent(const String & name_, int groupid, PaulstretchpluginAudioProcessor* proc, bool showtoggle)
|
||||
:name(name_), groupId(groupid), m_proc(proc), m_bgcolor(0xff1a1a1a), m_selbgcolor(0xff0d1922)
|
||||
:name(name_), groupId(groupid), m_proc(proc), m_bgcolor(0xff1a1a1a), m_selbgcolor(0xff141f28)
|
||||
{
|
||||
if (name_.isNotEmpty()) {
|
||||
m_namelabel = std::make_unique<Label>("name", name);
|
||||
@ -2304,6 +2304,7 @@ void ParameterGroupComponent::updateParameterComponents()
|
||||
if (order[i].m_index == groupId) {
|
||||
enabled = order[i].m_enabled->get();
|
||||
m_enableButton->setToggleState(enabled, dontSendNotification);
|
||||
m_enableButton->setAlpha(enabled ? 1.0f : 0.75f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -568,6 +568,7 @@ String PaulstretchpluginAudioProcessor::offlineRender(OfflineRenderParams render
|
||||
auto processor = std::make_shared<PaulstretchpluginAudioProcessor>(true);
|
||||
processor->setNonRealtime(true);
|
||||
processor->setStateFromTree(state);
|
||||
|
||||
double outsr{ renderpars.outsr };
|
||||
if (outsr < 10.0) {
|
||||
outsr = processor->getStretchSource()->getInfileSamplerate();
|
||||
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user