add signal for VST state load
MacVST has no dedicated VST event-loop to directly handle this.
This commit is contained in:
parent
c16eb83fec
commit
35de5080a6
@ -20,6 +20,7 @@
|
||||
#ifndef __ardour_vst_plugin_h__
|
||||
#define __ardour_vst_plugin_h__
|
||||
|
||||
#include <pbd/signals.h>
|
||||
#include "ardour/plugin.h"
|
||||
|
||||
struct _AEffect;
|
||||
@ -59,6 +60,8 @@ public:
|
||||
framecnt_t signal_latency() const;
|
||||
std::set<Evoral::Parameter> automatable() const;
|
||||
|
||||
PBD::Signal0<void> LoadPresetProgram;
|
||||
|
||||
bool parameter_is_audio (uint32_t) const { return false; }
|
||||
bool parameter_is_control (uint32_t) const { return true; }
|
||||
bool parameter_is_input (uint32_t) const { return true; }
|
||||
|
@ -387,6 +387,7 @@ VSTPlugin::load_plugin_preset (PresetRecord r)
|
||||
sscanf (r.uri.c_str(), "VST:%d:%d", &id, &index);
|
||||
#endif
|
||||
_state->want_program = index;
|
||||
LoadPresetProgram (); /* EMIT SIGNAL */ /* used for macvst */
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -429,6 +430,7 @@ VSTPlugin::load_user_preset (PresetRecord r)
|
||||
_state->wanted_chunk = raw_data;
|
||||
_state->wanted_chunk_size = size;
|
||||
_state->want_chunk = 1;
|
||||
LoadPresetProgram (); /* EMIT SIGNAL */ /* used for macvst */
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user