Most of these are implemented by vst2wrapper

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2024-03-11 15:24:14 +01:00
parent cc426bada4
commit 9249b6b166
2 changed files with 25 additions and 36 deletions
-30
View File
@@ -19,11 +19,6 @@ AEffEditor::AEffEditor(AudioEffect* effect) : effect(effect), _handle() {}
AEffEditor::~AEffEditor() {}
bool AEffEditor::getRect(ERect** rect)
{
return false;
}
bool AEffEditor::open(void* ptr)
{
if (!_handle) {
@@ -38,28 +33,3 @@ void AEffEditor::close()
_handle = nullptr;
return;
}
void AEffEditor::do_nothing()
{
return;
}
bool AEffEditor::setKnobMode(VstInt32 val)
{
return false;
}
bool AEffEditor::onKeyDown(VstKeyCode& keyCode)
{
return false;
}
bool AEffEditor::onKeyUp(VstKeyCode& keyCode)
{
return false;
}
bool AEffEditor::onWheel(float distance)
{
return false;
}
+25 -6
View File
@@ -26,16 +26,35 @@ class AEffEditor {
AEffEditor(AudioEffect* effect);
virtual ~AEffEditor();
virtual bool getRect(ERect** rect);
virtual bool getRect(ERect** rect)
{
*rect = nullptr;
return false;
}
virtual bool open(void* ptr);
virtual void close();
virtual void do_nothing();
virtual void do_nothing()
{
return;
}
#if (!defined VST_VERSION_SUPPORT) || (VST_VERSION_SUPPORT >= kVstVersion_2100)
virtual bool setKnobMode(VstInt32 val);
virtual bool onKeyDown(VstKeyCode& keyCode);
virtual bool onKeyUp(VstKeyCode& keyCode);
virtual bool onWheel(float distance);
virtual bool setKnobMode(VstInt32 val)
{
return false;
}
virtual bool onKeyDown(VstKeyCode& keyCode)
{
return false;
}
virtual bool onKeyUp(VstKeyCode& keyCode)
{
return false;
}
virtual bool onWheel(float distance)
{
return false;
}
#endif
protected: