Fix a very serious error resampling short files

Files that are so short that they need both pre- and post-extrapolation
at the same time.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-02-11 07:10:31 -08:00
parent 0b33fe6dea
commit 7f8c19799d
1 changed files with 3 additions and 1 deletions

View File

@ -785,7 +785,9 @@ tryagain:
latencyEaten -= outputDone;
outputDone = 0;
}
} else if(latencyEatenPost) {
}
if(latencyEatenPost) {
if(outputDone > latencyEatenPost) {
outputDone -= latencyEatenPost;
} else {