Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/soundtouch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/SoundTouch/RateTransposer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/SoundTouch/RateTransposer.cpp b/source/SoundTouch/RateTransposer.cpp
index 3fb1e46..7112568 100644
--- a/source/SoundTouch/RateTransposer.cpp
+++ b/source/SoundTouch/RateTransposer.cpp
@@ -608,8 +608,8 @@ int RateTransposerFloat::transposeMono(SAMPLETYPE *dest, const SAMPLETYPE *src,
{
int i, remain;
- remain = 0;
- i = 0;
+ remain = nSamples - 1;
+ i = 0;
// Process the last sample saved from the previous call first...
while (fSlopeCount <= 1.0f)