1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 22:23:59 +01:00
Files
audacity/src/effects/VST/VSTControl.h
Leland Lucius ac4c4faadc Round 8 of wx3 changes
VST control working on Windows...further changes will be required
2015-07-16 14:30:04 -05:00

66 lines
1.2 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
VSTControl.h
Leland Lucius
**********************************************************************/
#ifndef AUDACITY_VSTCONTROL_H
#define AUDACITY_VSTCONTROL_H
#include <wx/control.h>
#include <wx/panel.h>
#include "aeffectx.h"
class VSTEffectLink
{
public:
virtual ~VSTEffectLink() {};
virtual intptr_t callDispatcher(int opcode, int index, intptr_t value, void *ptr, float opt) = 0;
};
class VSTControlBase : public wxControl
{
public:
VSTControlBase()
{
mParent = NULL;
mLink = NULL;
}
virtual ~VSTControlBase()
{
}
virtual bool Create(wxWindow *parent, VSTEffectLink *link)
{
mParent = parent;
mLink = link;
if (!wxControl::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNO_BORDER, wxDefaultValidator, wxEmptyString))
{
return false;
}
return true;
}
protected:
wxWindow *mParent;
VSTEffectLink *mLink;
};
#if defined(__WXOSX__)
#include "VSTControlOSX.h"
#elif defined(__WXMSW__)
#include "VSTControlMSW.h"
#elif defined(__WXGTK__)
#include "VSTControlGTK.h"
#endif
#endif