#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:
return ChanCount::ZERO;
}
+Plugin::IOPortDescription
+Plugin::describe_io_port (ARDOUR::DataType dt, bool input, uint32_t id) const
+{
+ std::stringstream ss;
+ switch (dt) {
+ case DataType::AUDIO:
+ ss << _("Audio") << " ";
+ break;
+ case DataType::MIDI:
+ ss << _("Midi") << " ";
+ break;
+ default:
+ ss << _("?") << " ";
+ break;
+ }
+ if (input) {
+ ss << _("In") << " ";
+ } else {
+ ss << _("Out") << " ";
+ }
+
+ 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) {
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);