virtual bool inplace_broken() const { return false; }
virtual int connect_and_run (BufferSet& bufs,
- framepos_t start, framepos_t end, double speed,
- ChanMapping in, ChanMapping out,
- pframes_t nframes, framecnt_t offset);
+ samplepos_t start, samplepos_t end, double speed,
+ ChanMapping const& in, ChanMapping const& out,
+ pframes_t nframes, samplecnt_t offset);
virtual std::set<Evoral::Parameter> automatable() const = 0;
virtual std::string describe_parameter (Evoral::Parameter) = 0;
struct PresetRecord {
PresetRecord () : valid (false) {}
- PresetRecord (const std::string& u, const std::string& l, bool s = true) : uri (u), label (l), user (s), valid (true) {}
+ PresetRecord (const std::string& u, const std::string& l, bool s = true, const std::string& d = "")
+ : uri (u), label (l), description (d), user (s), valid (true) {}
bool operator!= (PresetRecord const & a) const {
return uri != a.uri || label != a.label;
std::string uri;
std::string label;
+ std::string description;
bool user;
bool valid;
};
}
/** the max possible latency a plugin will have */
- virtual framecnt_t max_latency () const { return 0; } // TODO = 0, require implementation
+ virtual samplecnt_t max_latency () const { return 0; } // TODO = 0, require implementation
/** Emitted when a preset is added or removed, respectively */
PBD::Signal0<void> PresetAdded;
PBD::ScopedConnection _preset_connection;
- MidiRingBuffer<framepos_t> _immediate_events;
+ MidiRingBuffer<samplepos_t> _immediate_events;
void resolve_midi ();
};
std::string unique_id;
virtual PluginPtr load (Session& session) = 0;
- virtual bool is_instrument() const;
+
+ /* NOTE: it is possible for a plugin to be an effect AND an instrument.
+ * override these funcs as necessary to support that.
+ */
+ virtual bool is_effect () const;
+ virtual bool is_instrument () const;
+ virtual bool is_utility () const; //this includes things like "generators" and "midi filters"
+ virtual bool is_analyzer () const;
+
virtual bool needs_midi_input() const;
- virtual bool in_category (const std::string &) const { return false; }
virtual std::vector<Plugin::PresetRecord> get_presets (bool user_only) const = 0;