summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/auditioner.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-11-23 22:00:04 +0100
committerRobin Gareus <robin@gareus.org>2018-11-23 22:00:04 +0100
commit2e3e18320489c0da6e3172af4c6df6ca8d693c29 (patch)
treeab0272204154bdf20247bd5d22d26ab6d54ed6b9 /libs/ardour/ardour/auditioner.h
parent8c4c97d1e2f3e4701de099edd836c81c31f2744c (diff)
Load audition synth on demand
This saves some memory (gmsynth loads a 30MB soundfont), and also re-initializes the synth every time to gm defaults in case some .mid changes patches or parameters.
Diffstat (limited to 'libs/ardour/ardour/auditioner.h')
-rw-r--r--libs/ardour/ardour/auditioner.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/ardour/auditioner.h b/libs/ardour/ardour/auditioner.h
index af3a370e8c..8e13f47ecb 100644
--- a/libs/ardour/ardour/auditioner.h
+++ b/libs/ardour/ardour/auditioner.h
@@ -25,6 +25,7 @@
#include <glibmm/threads.h>
#include "ardour/ardour.h"
+#include "ardour/plugin.h"
#include "ardour/track.h"
namespace ARDOUR {
@@ -104,16 +105,15 @@ class LIBARDOUR_API Auditioner : public Track
bool _seek_complete;
bool via_monitor;
bool _midi_audition;
- bool _synth_added;
- bool _synth_changed;
bool _queue_panic;
boost::shared_ptr<Processor> asynth;
+ PluginInfoPtr lookup_synth_plugin_info (std::string const&) const;
void drop_ports ();
- void lookup_synth ();
- void config_changed (std::string);
- static void *_drop_ports (void *);
+ void lookup_synth (bool);
+ void unload_synth (bool);
+ static void*_drop_ports (void*);
void actually_drop_ports ();
void output_changed (IOChange, void*);
sampleoffset_t _import_position;