diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2019-02-01 10:57:33 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2019-02-12 13:04:59 -0600 |
commit | 14c69e869f07405b56c1e5b3fc94a4247743e768 (patch) | |
tree | 9e47adef0a7bae8525f773df33ff08a25fd0e767 /libs/ardour/ardour/auditioner.h | |
parent | 5eca084d005acb2772a0cbc289615a00622635dc (diff) |
Hard-code GMsynth as the fallback, and allow UI to select the audition synth on-the-fly.
Diffstat (limited to 'libs/ardour/ardour/auditioner.h')
-rw-r--r-- | libs/ardour/ardour/auditioner.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/ardour/auditioner.h b/libs/ardour/ardour/auditioner.h index d849eaecb5..4f30d4e8a2 100644 --- a/libs/ardour/ardour/auditioner.h +++ b/libs/ardour/ardour/auditioner.h @@ -86,7 +86,12 @@ public: int export_stuff (BufferSet&, samplepos_t, samplecnt_t, boost::shared_ptr<Processor>, bool, bool, bool) { return -1; } + void set_audition_synth_info(PluginInfoPtr in) { audition_synth_info = in; } + private: + + PluginInfoPtr audition_synth_info; //we will use this to create a new synth on-the-fly each time an audition is requested + boost::shared_ptr<AudioRegion> the_region; boost::shared_ptr<MidiRegion> midi_region; samplepos_t current_sample; @@ -102,9 +107,10 @@ private: boost::shared_ptr<Processor> asynth; - PluginInfoPtr lookup_synth_plugin_info (std::string const&) const; + PluginInfoPtr lookup_fallback_synth_plugin_info (std::string const&) const; void drop_ports (); - void lookup_synth (bool); + void lookup_fallback_synth (); + void load_synth(bool); void unload_synth (bool); static void*_drop_ports (void*); void actually_drop_ports (); |