#include "pbd/floating.h"
#include "pbd/locale_guard.h"
-#include "pbd/pathscanner.h"
#include "ardour/vst_plugin.h"
#include "ardour/vestige/aeffectx.h"
void
VSTPlugin::add_state (XMLNode* root) const
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if (_plugin->flags & 32 /* effFlagsProgramsChunks */) {
int
VSTPlugin::set_state (const XMLNode& node, int version)
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
int ret = -1;
if (node.name() != state_node_name()) {
{
VstParameterProperties prop;
+ memset (&prop, 0, sizeof (VstParameterProperties));
desc.min_unbound = false;
desc.max_unbound = false;
prop.flags = 0;
if (_plugin->dispatcher (_plugin, effGetParameterProperties, which, 0, &prop, 0)) {
/* i have yet to find or hear of a VST plugin that uses this */
+ /* RG: faust2vsti does use this :) */
if (prop.flags & kVstParameterUsesIntegerMinMax) {
desc.lower = prop.minInteger;
desc.largestep = desc.step * 10.0f;
}
+ if (strlen(prop.label) == 0) {
+ _plugin->dispatcher (_plugin, effGetParamName, which, 0, prop.label, 0);
+ }
+
desc.toggled = prop.flags & kVstParameterIsSwitch;
desc.logarithmic = false;
desc.sr_dependent = false;
*/
float** ins = (float**)alloca(_plugin->numInputs*sizeof(float*));
- float** outs = (float**)alloca(_plugin->numInputs*sizeof(float*));
+ float** outs = (float**)alloca(_plugin->numOutputs*sizeof(float*));
int32_t i;