Added slight sleep delay to retry cycle of input decoder chain
This commit is contained in:
parent
19e56122a9
commit
06d0f1834c
1 changed files with 1 additions and 0 deletions
|
@ -212,6 +212,7 @@ static OSStatus ACFloatProc(AudioConverterRef inAudioConverter,
|
||||||
ioData.mBuffers[0].mData = floatBuffer + amountRead;
|
ioData.mBuffers[0].mData = floatBuffer + amountRead;
|
||||||
ioNumberFrames = ( amount / outputFormat.mBytesPerFrame ) - ( amountRead / floatFormat.mBytesPerFrame );
|
ioNumberFrames = ( amount / outputFormat.mBytesPerFrame ) - ( amountRead / floatFormat.mBytesPerFrame );
|
||||||
ioData.mBuffers[0].mDataByteSize = ioNumberFrames * floatFormat.mBytesPerFrame;
|
ioData.mBuffers[0].mDataByteSize = ioNumberFrames * floatFormat.mBytesPerFrame;
|
||||||
|
usleep(10000);
|
||||||
goto tryagain;
|
goto tryagain;
|
||||||
}
|
}
|
||||||
else if (err != noErr && err != kAudioConverterErr_InvalidInputSize)
|
else if (err != noErr && err != kAudioConverterErr_InvalidInputSize)
|
||||||
|
|
Loading…
Reference in a new issue