summaryrefslogtreecommitdiffstats
path: root/media/libsoundtouch/src/SoundTouch.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-07 21:24:58 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-11 13:44:33 +0100
commitf0e7aec5da5de7fa825397feb9b1cec402d77cee (patch)
treecbfc951393d2e33cfa21c65d2c98cffa39c9ddfa /media/libsoundtouch/src/SoundTouch.cpp
parentc7fbaa67c6089fdb2682984d8d4a6f484c1eb49d (diff)
downloadUXP-f0e7aec5da5de7fa825397feb9b1cec402d77cee.tar
UXP-f0e7aec5da5de7fa825397feb9b1cec402d77cee.tar.gz
UXP-f0e7aec5da5de7fa825397feb9b1cec402d77cee.tar.lz
UXP-f0e7aec5da5de7fa825397feb9b1cec402d77cee.tar.xz
UXP-f0e7aec5da5de7fa825397feb9b1cec402d77cee.zip
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)
Diffstat (limited to 'media/libsoundtouch/src/SoundTouch.cpp')
-rw-r--r--media/libsoundtouch/src/SoundTouch.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}