Audio Output: Fixed converter so it won't loop endlessly when it either reaches the end of a stream or is otherwise supposed to terminate

CQTexperiment
Christopher Snowhill 2021-12-25 22:47:17 -08:00
parent 5246731189
commit 1278b64afd
1 changed files with 5 additions and 0 deletions

View File

@ -259,6 +259,11 @@ static OSStatus ACFloatProc(AudioConverterRef inAudioConverter,
int amountRead = 0;
tryagain2:
if ([self shouldContinue] == NO || [self endOfStream] == YES)
{
return amountRead;
}
amountReadFromFC = 0;
if (floatOffset == floatSize) {