mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-20 22:30:05 +02:00
Do NOT call SetHost() after changing options
This reinits stuff that shouldn't be reinited while actively previewing. So, just reload the settings directly.
This commit is contained in:
parent
000f353f57
commit
cd315f7f1e
@ -2448,7 +2448,8 @@ void VSTEffect::ShowOptions()
|
||||
if (dlg.ShowModal())
|
||||
{
|
||||
// Reinitialize configuration settings
|
||||
SetHost(mHost);
|
||||
mHost->GetSharedConfig(wxT("Options"), wxT("BufferSize"), mUserBlockSize, 8192);
|
||||
mHost->GetSharedConfig(wxT("Options"), wxT("UseLatency"), mUseLatency, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2112,11 +2112,13 @@ bool AudioUnitEffect::HasOptions()
|
||||
void AudioUnitEffect::ShowOptions()
|
||||
{
|
||||
AudioUnitEffectOptionsDialog dlg(mParent, mHost);
|
||||
dlg.ShowModal();
|
||||
|
||||
if (dlg.ShowModal())
|
||||
{
|
||||
// Reinitialize configuration settings
|
||||
mHost->GetSharedConfig(wxT("Options"), wxT("UseLatency"), mUseLatency, true);
|
||||
mHost->GetSharedConfig(wxT("Options"), wxT("UseGUI"), mUseGUI, true);
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// AudioUnitEffect Implementation
|
||||
|
Loading…
x
Reference in New Issue
Block a user