- XMLNode& get_state();
- int set_state(const XMLNode& node);
-
- AEffect* plugin() const { return _plugin; }
- FST* fst() const { return _fst; }
-
-
- private:
- FSTHandle* handle;
- FST* _fst;
+ AEffect * plugin () const { return _plugin; }
+ VSTState * state () const { return _state; }
+ MidiBuffer * midi_buffer () const { return _midi_out_buf; }
+
+ int set_state (XMLNode const &, int);
+
+ int first_user_preset_index () const;
+
+ void set_insert (PluginInsert* pi, uint32_t num) { _pi = pi; _num = num; }
+ PluginInsert* plugin_insert () const { return _pi; }
+ uint32_t plugin_number () const { return _num; }
+ VstTimeInfo* timeinfo () { return &_timeInfo; }
+ framepos_t transport_frame () const { return _transport_frame; }
+ float transport_speed () const { return _transport_speed; }
+
+
+protected:
+ void set_plugin (AEffect *);
+ gchar* get_chunk (bool) const;
+ int set_chunk (gchar const *, bool);
+ void add_state (XMLNode *) const;
+ bool load_user_preset (PresetRecord);
+ bool load_plugin_preset (PresetRecord);
+ std::string do_save_preset (std::string name);
+ void do_remove_preset (std::string name);
+ XMLTree * presets_tree () const;
+ std::string presets_file () const;
+ void find_presets ();
+
+ VSTHandle* _handle;
+ VSTState* _state;