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:
parent
e2f1e9fdde
commit
cf66f88050
@ -31,6 +31,7 @@
|
||||
#include "effects/EffectManager.h"
|
||||
#include "effects/nyquist/Nyquist.h"
|
||||
#include "../images/AudacityLogo.xpm"
|
||||
#include "widgets/ErrorDialog.h"
|
||||
|
||||
#include "NyqBench.h"
|
||||
|
||||
@ -138,6 +139,11 @@ extern "C"
|
||||
{
|
||||
static NyqBench *gBench = NULL;
|
||||
|
||||
static CommandHandlerObject &findme(AudacityProject&)
|
||||
{
|
||||
return *NyqBench::GetBench();
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define DLL_API _declspec(dllexport)
|
||||
#else
|
||||
@ -186,7 +192,8 @@ extern "C"
|
||||
c->SetDefaultFlags(AudioIONotBusyFlag, AudioIONotBusyFlag);
|
||||
c->AddItem(wxT("NyqBench"),
|
||||
_("&Nyquist Workbench..."),
|
||||
FNT(NyqBench, NyqBench::GetBench(), &NyqBench::ShowNyqBench));
|
||||
findme,
|
||||
static_cast<CommandFunctorPointer>(&NyqBench::ShowNyqBench));
|
||||
|
||||
c->ClearCurrentMenu();
|
||||
}
|
||||
@ -1391,7 +1398,7 @@ void NyqBench::OnGo(wxCommandEvent & e)
|
||||
mRunning = true;
|
||||
UpdateWindowUI();
|
||||
|
||||
p->OnEffect(ID);
|
||||
p->DoEffect(ID, 0);
|
||||
|
||||
mRunning = false;
|
||||
UpdateWindowUI();
|
||||
@ -1767,7 +1774,7 @@ void NyqBench::LoadFile()
|
||||
// Connects Audacity menu item to an action in this dll.
|
||||
// Only one action implemented so far.
|
||||
//----------------------------------------------------------------------------
|
||||
void NyqBench::ShowNyqBench()
|
||||
void NyqBench::ShowNyqBench(const CommandContext &)
|
||||
{
|
||||
Show();
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ class NyqBench:public wxFrame
|
||||
|
||||
virtual bool Validate();
|
||||
|
||||
void ShowNyqBench();
|
||||
void ShowNyqBench(const CommandContext&);
|
||||
|
||||
static NyqBench *GetBench();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user