1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 17:11:20 +01:00

Save/restore effect state during batch processing

This commit is contained in:
Leland Lucius
2015-04-27 09:22:47 -05:00
parent e41db0e4b4
commit 7407243e25
9 changed files with 80 additions and 72 deletions

View File

@@ -808,6 +808,11 @@ wxString Effect::GetFactoryDefaultsGroup()
return wxT("FactoryDefaults");
}
wxString Effect::GetSavedStateGroup()
{
return wxT("SavedState");
}
// ConfigClientInterface implementation
bool Effect::HasSharedConfigGroup(const wxString & group)
{
@@ -1125,9 +1130,18 @@ bool Effect::IsBatchProcessing()
return mIsBatch;
}
void Effect::SetBatchProcessing(bool enable)
void Effect::SetBatchProcessing(bool start)
{
mIsBatch = enable;
mIsBatch = start;
if (start)
{
SaveUserPreset(GetSavedStateGroup());
}
else
{
LoadUserPreset(GetSavedStateGroup());
}
}
bool Effect::DoEffect(wxWindow *parent,