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-07 21:24:58 +0100
commitc0326517787e12bb5904d8f55386499628806b42 (patch)
treee352b79599433ed33bf02947b59f0075bd7e1970 /media/libsoundtouch/src/SoundTouch.cpp
parentc66b70c4da6877303d8951c10ce47dce0ff01366 (diff)
downloadUXP-c0326517787e12bb5904d8f55386499628806b42.tar
UXP-c0326517787e12bb5904d8f55386499628806b42.tar.gz
UXP-c0326517787e12bb5904d8f55386499628806b42.tar.lz
UXP-c0326517787e12bb5904d8f55386499628806b42.tar.xz
UXP-c0326517787e12bb5904d8f55386499628806b42.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;
}