Apparently "user" is for plugins (not hosts) to use.
if (width != vstfx->width || height != vstfx->height) {
vstfx->width = width;
vstfx->height = height;
- ARDOUR::VSTPlugin* plug = (ARDOUR::VSTPlugin *)(vstfx->plugin->user);
+ ARDOUR::VSTPlugin* plug = (ARDOUR::VSTPlugin *)(vstfx->plugin->ptr1);
plug->VSTSizeWindow (); /* EMIT SIGNAL */
}
}
vstfx->handle = fhandle;
- vstfx->plugin->user = userptr;
+ vstfx->plugin->ptr1 = userptr;
if (vstfx->plugin->magic != kEffectMagic)
{
Session::vst_current_loading_id = atoi (unique_id);
AEffect* plugin = handle->main_entry (Session::vst_callback);
Session::vst_current_loading_id = 0;
- plugin->user = NULL;
+ plugin->ptr1 = NULL;
plugin->dispatcher (plugin, effOpen, 0, 0, 0, 0); // :(
int const vst_version = plugin->dispatcher (plugin, effGetVstVersion, 0, 0, NULL, 0);
Session::vst_current_loading_id = atoi (unique_id);
AEffect* plugin = handle->main_entry (Session::vst_callback);
Session::vst_current_loading_id = 0;
- plugin->user = NULL;
+ plugin->ptr1 = NULL;
plugin->dispatcher (plugin, effOpen, 0, 0, 0, 0); // :(
int const vst_version = plugin->dispatcher (plugin, effGetVstVersion, 0, 0, NULL, 0);
}
mac_vst->handle = fhandle;
- mac_vst->plugin->user = userptr;
+ mac_vst->plugin->ptr1 = userptr;
if (mac_vst->plugin->magic != kEffectMagic)
{
VstTimeInfo* timeinfo;
int32_t newflags = 0;
- if (effect && effect->user) {
- plug = (VSTPlugin *) (effect->user);
+ if (effect && effect->ptr1) {
+ plug = (VSTPlugin *) (effect->ptr1);
session = &plug->session();
timeinfo = plug->timeinfo ();
DEBUG_TRACE (PBD::DEBUG::VSTCallbacks, string_compose ("am callback 0x%1%2, opcode = %3%4, plugin = \"%5\"\n",
VSTPlugin::open_plugin ()
{
_plugin = _state->plugin;
- assert (_plugin->user == this); // should have been set by {mac_vst|fst|lxvst}_instantiate
- _plugin->user = this;
+ assert (_plugin->ptr1 == this); // should have been set by {mac_vst|fst|lxvst}_instantiate
+ _plugin->ptr1 = this;
_state->plugin->dispatcher (_plugin, effOpen, 0, 0, 0, 0);
_state->vst_version = _plugin->dispatcher (_plugin, effGetVstVersion, 0, 0, 0, 0);
}
}
fst->handle = fhandle;
- fst->plugin->user = userptr;
+ fst->plugin->ptr1 = userptr;
if (fst->plugin->magic != kEffectMagic) {
fst_error ("fst_instantiate: %s is not a vst plugin\n", fhandle->name);