changeset 545:fcac6c6b8deb levelpanwidget

Merge from branch 3.0-integration
author Chris Cannam
date Mon, 05 Dec 2016 17:03:09 +0000
parents fb675409297a (current diff) 167d37937436 (diff)
children 07e111dd5902
files
diffstat 1 files changed, 2 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.cpp	Mon Dec 05 15:47:40 2016 +0000
+++ b/audio/AudioCallbackPlaySource.cpp	Mon Dec 05 17:03:09 2016 +0000
@@ -78,8 +78,7 @@
     m_stretcherInputs(0),
     m_stretcherInputSizes(0),
     m_fillThread(0),
-    m_converter(0),
-    m_resampleQuality(Preferences::getInstance()->getResampleQuality())
+    m_converter(0)
 {
     m_viewManager->setAudioPlaySource(this);
 
@@ -559,9 +558,6 @@
 void
 AudioCallbackPlaySource::preferenceChanged(PropertyContainer::PropertyName n)
 {
-    if (n == "Resample Quality") {
-        setResampleQuality(Preferences::getInstance()->getResampleQuality());
-    }
 }
 
 void
@@ -977,11 +973,7 @@
 
 	int err = 0;
 
-	m_converter = src_new(m_resampleQuality == 2 ? SRC_SINC_BEST_QUALITY :
-                              m_resampleQuality == 1 ? SRC_SINC_MEDIUM_QUALITY :
-                              m_resampleQuality == 0 ? SRC_SINC_FASTEST :
-                                                       SRC_SINC_MEDIUM_QUALITY,
-			      getTargetChannelCount(), &err);
+	m_converter = src_new(SRC_SINC_FASTEST, getTargetChannelCount(), &err);
 
 	if (!m_converter) {
 	    cerr << "AudioCallbackPlaySource::setModel: ERROR in creating samplerate converter: "
@@ -1006,20 +998,6 @@
 }
 
 void
-AudioCallbackPlaySource::setResampleQuality(int q)
-{
-    if (q == m_resampleQuality) return;
-    m_resampleQuality = q;
-
-#ifdef DEBUG_AUDIO_PLAY_SOURCE
-    SVDEBUG << "AudioCallbackPlaySource::setResampleQuality: setting to "
-              << m_resampleQuality << endl;
-#endif
-
-    initialiseConverter();
-}
-
-void
 AudioCallbackPlaySource::setAuditioningEffect(Auditionable *a)
 {
     RealTimePluginInstance *plugin = dynamic_cast<RealTimePluginInstance *>(a);