Bug Fix: Track advancing when Rubber Band disabled

Apparently I somehow didn't notice this situation because I still had
Rubber Band enabled, and existing users kept it enabled ever since I
introduced it.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-11 14:25:06 -07:00
parent 15eaa877b1
commit fdd0244067

View file

@ -379,6 +379,9 @@ static void * kDSPRubberbandNodeContext = &kDSPRubberbandNodeContext;
AudioChunk *chunk = nil;
chunk = [self convert];
if(!chunk || ![chunk frameCount]) {
if(!ts) {
flushed = previousNode && [[previousNode buffer] isEmpty] && [previousNode endOfStream] == YES;
}
if(flushed) {
usleep(500);
endOfStream = YES;