With longer process sizes we can end up with insufficient space in the inbuf, but enough in the outbuf following the previous retrieve call for a consume to be possible before writing to the inbuf

This commit is contained in:
Chris Cannam
2022-09-01 10:41:25 +01:00
parent 53eca719fb
commit 4336d47a02
2 changed files with 6 additions and 0 deletions

View File

@@ -673,6 +673,7 @@ int main(int argc, char **argv)
RubberBandStretcher ts(sfinfo.samplerate, channels, options,
ratio, frequencyshift);
ts.setExpectedInputDuration(sfinfo.frames);
ts.setMaxProcessSize(bs);
int frame = 0;
int percent = 0;