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
This commit is contained in:
parent
5246731189
commit
1278b64afd
1 changed files with 5 additions and 0 deletions
|
@ -259,6 +259,11 @@ static OSStatus ACFloatProc(AudioConverterRef inAudioConverter,
|
||||||
int amountRead = 0;
|
int amountRead = 0;
|
||||||
|
|
||||||
tryagain2:
|
tryagain2:
|
||||||
|
if ([self shouldContinue] == NO || [self endOfStream] == YES)
|
||||||
|
{
|
||||||
|
return amountRead;
|
||||||
|
}
|
||||||
|
|
||||||
amountReadFromFC = 0;
|
amountReadFromFC = 0;
|
||||||
|
|
||||||
if (floatOffset == floatSize) {
|
if (floatOffset == floatSize) {
|
||||||
|
|
Loading…
Reference in a new issue