diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-07 21:24:58 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-11 13:44:33 +0100 |
commit | f0e7aec5da5de7fa825397feb9b1cec402d77cee (patch) | |
tree | cbfc951393d2e33cfa21c65d2c98cffa39c9ddfa /media/libsoundtouch/src/SoundTouch.cpp | |
parent | c7fbaa67c6089fdb2682984d8d4a6f484c1eb49d (diff) | |
download | UXP-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.cpp | 2 |
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; } |