mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Set kAudioUnitProperty_MaximumFramesPerSlice on iOS
This commit is contained in:
parent
2c3783e834
commit
b3ee8806d6
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue