|
|
|
@@ -682,7 +682,8 @@ private: |
|
|
|
UInt32 framesPerSlice;
|
|
|
|
UInt32 dataSize = sizeof (framesPerSlice);
|
|
|
|
|
|
|
|
if (AudioUnitGetProperty (audioUnit, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0, &framesPerSlice, &dataSize) == noErr
|
|
|
|
if (AudioUnitSetProperty (audioUnit, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0, &actualBufferSize, sizeof (actualBufferSize)) == noErr
|
|
|
|
&& AudioUnitGetProperty (audioUnit, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0, &framesPerSlice, &dataSize) == noErr
|
|
|
|
&& dataSize == sizeof (framesPerSlice) && framesPerSlice != actualBufferSize)
|
|
|
|
{
|
|
|
|
actualBufferSize = framesPerSlice;
|
|
|
|
|