virtual uint32_t nth_parameter (uint32_t which, bool& ok) const = 0;
virtual void activate () = 0;
virtual void deactivate () = 0;
- virtual void flush () { deactivate(); activate(); }
+ virtual void flush () { deactivate(); activate(); }
virtual int set_block_size (pframes_t nframes) = 0;
virtual bool parameter_is_input(uint32_t) const = 0;
virtual bool parameter_is_output(uint32_t) const = 0;
+ typedef std::map<const std::string, const float> ScalePoints;
+
+ virtual boost::shared_ptr<ScalePoints>
+ get_scale_points(uint32_t port_index) const {
+ return boost::shared_ptr<ScalePoints>();
+ }
+
void realtime_handle_transport_stopped ();
struct PresetRecord {
bool operator!= (PresetRecord const & a) const {
return uri != a.uri || label != a.label;
}
-
+
std::string uri;
std::string label;
bool user;
void remove_preset (std::string);
virtual bool load_preset (PresetRecord);
-
+
const PresetRecord * preset_by_label (const std::string &);
const PresetRecord * preset_by_uri (const std::string &);
PresetRecord last_preset () const {
return _last_preset;
}
-
+
bool parameter_changed_since_last_preset () const {
return _parameter_changed_since_last_preset;
}
-
+
virtual int first_user_preset_index () const {
return 0;
}
-
+
/** Emitted when a preset is added or removed, respectively */
PBD::Signal0<void> PresetAdded;
PBD::Signal0<void> PresetRemoved;
cycles_t cycles() const { return _cycles; }
protected:
-
+
friend class PluginInsert;
friend struct PluginInsert::PluginControl;