From f0e7aec5da5de7fa825397feb9b1cec402d77cee Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Tue, 7 Jan 2020 21:24:58 +0100 Subject: Reject sample rates that are out-of-range for libsoundtouch. We never reach this with our normal use of this lib but adding the sanity check just in case. (ported from upstream) --- media/libsoundtouch/src/SoundTouch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/libsoundtouch/src/SoundTouch.cpp') diff --git a/media/libsoundtouch/src/SoundTouch.cpp b/media/libsoundtouch/src/SoundTouch.cpp index a9d23fc3c..955818810 100644 --- a/media/libsoundtouch/src/SoundTouch.cpp +++ b/media/libsoundtouch/src/SoundTouch.cpp @@ -283,9 +283,9 @@ void SoundTouch::calcEffectiveRateAndTempo() // Sets sample rate. void SoundTouch::setSampleRate(uint srate) { - bSrateSet = true; // set sample rate, leave other tempo changer parameters as they are. pTDStretch->setParameters((int)srate); + bSrateSet = true; } -- cgit v1.2.3