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
parent
5246731189
commit
1278b64afd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue