1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-16 16:20:50 +02:00

Fix build of mod-nyq-bench

This commit is contained in:
Paul Licameli 2018-01-29 23:00:59 -05:00
parent e2f1e9fdde
commit cf66f88050
2 changed files with 12 additions and 5 deletions

View File

@ -31,6 +31,7 @@
#include "effects/EffectManager.h" #include "effects/EffectManager.h"
#include "effects/nyquist/Nyquist.h" #include "effects/nyquist/Nyquist.h"
#include "../images/AudacityLogo.xpm" #include "../images/AudacityLogo.xpm"
#include "widgets/ErrorDialog.h"
#include "NyqBench.h" #include "NyqBench.h"
@ -138,6 +139,11 @@ extern "C"
{ {
static NyqBench *gBench = NULL; static NyqBench *gBench = NULL;
static CommandHandlerObject &findme(AudacityProject&)
{
return *NyqBench::GetBench();
}
#ifdef _MSC_VER #ifdef _MSC_VER
#define DLL_API _declspec(dllexport) #define DLL_API _declspec(dllexport)
#else #else
@ -185,8 +191,9 @@ extern "C"
c->AddSeparator(); c->AddSeparator();
c->SetDefaultFlags(AudioIONotBusyFlag, AudioIONotBusyFlag); c->SetDefaultFlags(AudioIONotBusyFlag, AudioIONotBusyFlag);
c->AddItem(wxT("NyqBench"), c->AddItem(wxT("NyqBench"),
_("&Nyquist Workbench..."), _("&Nyquist Workbench..."),
FNT(NyqBench, NyqBench::GetBench(), &NyqBench::ShowNyqBench)); findme,
static_cast<CommandFunctorPointer>(&NyqBench::ShowNyqBench));
c->ClearCurrentMenu(); c->ClearCurrentMenu();
} }
@ -1391,7 +1398,7 @@ void NyqBench::OnGo(wxCommandEvent & e)
mRunning = true; mRunning = true;
UpdateWindowUI(); UpdateWindowUI();
p->OnEffect(ID); p->DoEffect(ID, 0);
mRunning = false; mRunning = false;
UpdateWindowUI(); UpdateWindowUI();
@ -1767,7 +1774,7 @@ void NyqBench::LoadFile()
// Connects Audacity menu item to an action in this dll. // Connects Audacity menu item to an action in this dll.
// Only one action implemented so far. // Only one action implemented so far.
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void NyqBench::ShowNyqBench() void NyqBench::ShowNyqBench(const CommandContext &)
{ {
Show(); Show();
} }

View File

@ -111,7 +111,7 @@ class NyqBench:public wxFrame
virtual bool Validate(); virtual bool Validate();
void ShowNyqBench(); void ShowNyqBench(const CommandContext&);
static NyqBench *GetBench(); static NyqBench *GetBench();