summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_ui.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2019-02-01 10:17:48 -0600
committerBen Loftis <ben@harrisonconsoles.com>2019-02-12 13:04:59 -0600
commit5eca084d005acb2772a0cbc289615a00622635dc (patch)
treedf27dd04382fd8ceb64f4e68380ea58bab68d121 /gtk2_ardour/sfdb_ui.cc
parentc881b4a85f77588b98ce0dc01bca86e8ff4ece89 (diff)
Allow the selected Instrument to be used as the auditioner synth.
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r--gtk2_ardour/sfdb_ui.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc
index 37a9126a8c..67eda8914a 100644
--- a/gtk2_ardour/sfdb_ui.cc
+++ b/gtk2_ardour/sfdb_ui.cc
@@ -1798,6 +1798,9 @@ SoundFileOmega::SoundFileOmega (string title, ARDOUR::Session* s,
where_combo.set_active_text (str.back());
where_combo.signal_changed().connect (sigc::mem_fun (*this, &SoundFileOmega::where_combo_changed));
+ instrument_combo_changed();
+ instrument_combo.signal_changed().connect(sigc::mem_fun(*this, &SoundFileOmega::instrument_combo_changed) );
+
Label* l = manage (new Label);
l->set_markup (_("<b>Add files ...</b>"));
options.attach (*l, 0, 1, 0, 1, FILL, SHRINK, 8, 0);
@@ -1984,6 +1987,12 @@ SoundFileOmega::where_combo_changed()
preview.set_import_position(get_position());
}
+void
+SoundFileOmega::instrument_combo_changed()
+{
+ _session->the_auditioner()->set_audition_synth_info( instrument_combo.selected_instrument() );
+}
+
MidiTrackNameSource
SoundFileOmega::get_midi_track_name_source () const
{