summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-01-19 00:45:08 +0100
committerRobin Gareus <robin@gareus.org>2014-01-19 00:45:08 +0100
commit8b71e40fbd2112807e6ff7631dc8855feab0eed5 (patch)
tree5c1cbe954c8ef7ed7519624ceee36d2a60229f15 /gtk2_ardour/sfdb_ui.cc
parent6eb076bd691f7f933eb25c560f6b730107632d2f (diff)
audition: resampler use same quality as import
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r--gtk2_ardour/sfdb_ui.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc
index 20de717001..7637025a41 100644
--- a/gtk2_ardour/sfdb_ui.cc
+++ b/gtk2_ardour/sfdb_ui.cc
@@ -391,7 +391,7 @@ SoundFileBox::audition ()
path, n,
Source::Flag (0), false));
if (afs->sample_rate() != _session->nominal_frame_rate()) {
- boost::shared_ptr<SrcFileSource> sfs (new SrcFileSource(*_session, afs));
+ boost::shared_ptr<SrcFileSource> sfs (new SrcFileSource(*_session, afs, _src_quality));
srclist.push_back(sfs);
} else {
srclist.push_back(afs);
@@ -1682,6 +1682,7 @@ SoundFileOmega::SoundFileOmega (string title, ARDOUR::Session* s,
set_popdown_strings (src_combo, str);
src_combo.set_active_text (str.front());
src_combo.set_sensitive (false);
+ src_combo.signal_changed().connect (sigc::mem_fun (*this, &SoundFileOmega::src_combo_changed));
reset_options ();
@@ -1792,6 +1793,12 @@ SoundFileOmega::get_src_quality() const
}
}
+void
+SoundFileOmega::src_combo_changed()
+{
+ preview.set_src_quality(get_src_quality());
+}
+
ImportDisposition
SoundFileOmega::get_channel_disposition () const
{