#include "pbd/stl_delete.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
#include <locale.h>
using namespace std;
switch (type) {
case ARDOUR::Lua:
- {
- PluginPtr plugin (new LuaProc (session.engine(), session, ""));
- return plugin;
- }
+ plugs = mgr.lua_plugin_info();
break;
case ARDOUR::LADSPA:
}
Plugin::IOPortDescription
-Plugin::describe_io_port (ARDOUR::DataType dt, bool input, uint32_t id)
+Plugin::describe_io_port (ARDOUR::DataType dt, bool input, uint32_t id) const
{
std::stringstream ss;
switch (dt) {
ss << _("Out") << " ";
}
- ss << id;
+ ss << (id + 1);
Plugin::IOPortDescription iod (ss.str());
return iod;
}
+PluginOutputConfiguration
+Plugin::possible_output () const
+{
+ PluginOutputConfiguration oc;
+ if (_info) {
+ oc.insert (_info->n_outputs.n_audio ());
+ }
+ return oc;
+}
+
const Plugin::PresetRecord *
Plugin::preset_by_label (const string& label)
{
int
Plugin::connect_and_run (BufferSet& bufs,
- ChanMapping /*in_map*/, ChanMapping /*out_map*/,
- pframes_t /* nframes */, framecnt_t /*offset*/)
+ framepos_t /*start*/, framepos_t /*end*/, double /*speed*/,
+ ChanMapping /*in_map*/, ChanMapping /*out_map*/,
+ pframes_t /* nframes */, framecnt_t /*offset*/)
{
if (bufs.count().n_midi() > 0) {
_last_preset = r;
_parameter_changed_since_last_preset = false;
+ _session.set_dirty ();
PresetLoaded (); /* EMIT SIGNAL */
return true;
}
_last_preset.label = "";
_parameter_changed_since_last_preset = false;
+ _session.set_dirty ();
PresetLoaded (); /* EMIT SIGNAL */
}
Plugin::get_state ()
{
XMLNode* root = new XMLNode (state_node_name ());
- LocaleGuard lg (X_("C"));
+ LocaleGuard lg;
root->add_property (X_("last-preset-uri"), _last_preset.uri);
root->add_property (X_("last-preset-label"), _last_preset.label);