Added slight sleep delay to retry cycle of input decoder chain

This commit is contained in:
Chris Moeller 2015-08-02 00:18:22 -07:00
parent 19e56122a9
commit 06d0f1834c

View file

@ -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)