Added slight sleep delay to retry cycle of input decoder chain

CQTexperiment
Chris Moeller 2015-08-02 00:18:22 -07:00
parent 19e56122a9
commit 06d0f1834c
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ static OSStatus ACFloatProc(AudioConverterRef inAudioConverter,
ioData.mBuffers[0].mData = floatBuffer + amountRead;
ioNumberFrames = ( amount / outputFormat.mBytesPerFrame ) - ( amountRead / floatFormat.mBytesPerFrame );
ioData.mBuffers[0].mDataByteSize = ioNumberFrames * floatFormat.mBytesPerFrame;
usleep(10000);
goto tryagain;
}
else if (err != noErr && err != kAudioConverterErr_InvalidInputSize)