1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-19 12:46:35 +01:00

Rob Sykes's patch (considerably modified because of MSVC preprocessor problems) to add sox-based reverb

This commit is contained in:
v.audacity
2013-05-02 23:41:27 +00:00
parent 70ebaa3cc0
commit 5555c2db62
10 changed files with 1059 additions and 22 deletions

View File

@@ -413,7 +413,7 @@ wxString Effect::GetPreviewName()
return _("Pre&view");
}
void Effect::Preview()
void Effect::Preview(bool dryOnly)
{
wxWindow* FocusDialog = wxWindow::FindFocus();
if (gAudioIO->IsBusy())
@@ -468,16 +468,19 @@ void Effect::Preview()
// Apply effect
// Effect is already inited; we call Process, End, and then Init
// again, so the state is exactly the way it was before Preview
// was called.
mProgress = new ProgressDialog(StripAmpersand(GetEffectName()),
_("Preparing preview"),
pdlgHideCancelButton); // Have only "Stop" button.
bool bSuccess = Process();
delete mProgress;
End();
Init();
bool bSuccess(true);
if (!dryOnly) {
// Effect is already inited; we call Process, End, and then Init
// again, so the state is exactly the way it was before Preview
// was called.
mProgress = new ProgressDialog(StripAmpersand(GetEffectName()),
_("Preparing preview"),
pdlgHideCancelButton); // Have only "Stop" button.
bSuccess = Process();
delete mProgress;
End();
Init();
}
if (bSuccess)
{
mT0 = t0save;
@@ -546,10 +549,12 @@ void Effect::Preview()
EffectDialog::EffectDialog(wxWindow * parent,
const wxString & title,
int type,
int flags)
int flags,
int additionalButtons)
: wxDialog(parent, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, flags)
{
mType = type;
mAdditionalButtons = additionalButtons;
}
void EffectDialog::Init()
@@ -571,7 +576,7 @@ void EffectDialog::Init()
buttons |= ePreviewButton;
}
}
S.AddStandardButtons(buttons);
S.AddStandardButtons(buttons|mAdditionalButtons);
}
S.EndVerticalLay();