Mercurial > hg > svapp
changeset 542:167d37937436 3.0-integration
Remove resampler quality option (#1760)
author | Chris Cannam |
---|---|
date | Mon, 05 Dec 2016 16:39:03 +0000 |
parents | 0d5c3abc9658 |
children | 699db455a3e1 c4391f6c7484 fcac6c6b8deb |
files | audio/AudioCallbackPlaySource.cpp |
diffstat | 1 files changed, 2 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.cpp Wed Nov 30 11:44:40 2016 +0000 +++ b/audio/AudioCallbackPlaySource.cpp Mon Dec 05 16:39:03 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);