Remove VST current_program variable, since that stuff is
managed by the presets code in Plugin. git-svn-id: svn://localhost/ardour2/branches/3.0@10801 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
360b4aed17
commit
569bf2f27e
|
@ -407,9 +407,6 @@ again:
|
|||
vstfx->plugin->dispatcher (vstfx->plugin, 68 /* effEndSetProgram */, 0, 0, NULL, 0);
|
||||
}
|
||||
|
||||
/* did it work? */
|
||||
|
||||
vstfx->current_program = vstfx->plugin->dispatcher (vstfx->plugin, 3, /* effGetProgram */ 0, 0, NULL, 0);
|
||||
vstfx->want_program = -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -104,7 +104,6 @@ struct _VSTState
|
|||
int n_pending_keys;
|
||||
unsigned char * wanted_chunk;
|
||||
int wanted_chunk_size;
|
||||
int current_program;
|
||||
float * want_params;
|
||||
float * set_params;
|
||||
|
||||
|
|
|
@ -145,12 +145,6 @@ VSTPlugin::add_state (XMLNode* root) const
|
|||
{
|
||||
LocaleGuard lg (X_("POSIX"));
|
||||
|
||||
if (_state->current_program != -1) {
|
||||
char buf[32];
|
||||
snprintf (buf, sizeof (buf), "%d", _state->current_program);
|
||||
root->add_property ("current-program", buf);
|
||||
}
|
||||
|
||||
if (_plugin->flags & 32 /* effFlagsProgramsChunks */) {
|
||||
|
||||
gchar* data = get_chunk (false);
|
||||
|
@ -193,12 +187,6 @@ VSTPlugin::set_state (const XMLNode& node, int version)
|
|||
return 0;
|
||||
}
|
||||
|
||||
const XMLProperty* prop;
|
||||
|
||||
if ((prop = node.property ("current-program")) != 0) {
|
||||
_state->want_program = atoi (prop->value().c_str());
|
||||
}
|
||||
|
||||
XMLNode* child;
|
||||
int ret = -1;
|
||||
|
||||
|
@ -230,10 +218,6 @@ VSTPlugin::set_state (const XMLNode& node, int version)
|
|||
_plugin->setParameter (_plugin, param, val);
|
||||
}
|
||||
|
||||
/* program number is not knowable */
|
||||
|
||||
_state->current_program = -1;
|
||||
|
||||
ret = 0;
|
||||
|
||||
}
|
||||
|
|
|
@ -69,7 +69,6 @@ vstfx_new ()
|
|||
|
||||
vstfx->want_program = -1;
|
||||
vstfx->want_chunk = 0;
|
||||
vstfx->current_program = -1;
|
||||
vstfx->n_pending_keys = 0;
|
||||
vstfx->has_editor = 0;
|
||||
vstfx->program_set_without_editor = 0;
|
||||
|
|
|
@ -74,7 +74,6 @@ fst_new ()
|
|||
pthread_cond_init (&fst->plugin_dispatcher_called, NULL);
|
||||
fst->want_program = -1;
|
||||
fst->want_chunk = 0;
|
||||
fst->current_program = -1;
|
||||
fst->n_pending_keys = 0;
|
||||
fst->has_editor = 0;
|
||||
fst->program_set_without_editor = 0;
|
||||
|
@ -101,8 +100,6 @@ maybe_set_program (VSTState* fst)
|
|||
if (fst->vst_version >= 2) {
|
||||
fst->plugin->dispatcher (fst->plugin, 68 /* effEndSetProgram */, 0, 0, NULL, 0);
|
||||
}
|
||||
/* did it work? */
|
||||
fst->current_program = fst->plugin->dispatcher (fst->plugin, 3, /* effGetProgram */ 0, 0, NULL, 0);
|
||||
fst->want_program = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user