mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
AudioUnit host: set the plugin's kAudioUnitProperty_MaximumFramesPerSlice property.
This commit is contained in:
parent
85e5fae0fd
commit
2b856f41a0
1 changed files with 4 additions and 0 deletions
|
|
@ -394,6 +394,10 @@ public:
|
|||
AudioUnitSetProperty (audioUnit, kAudioUnitProperty_SampleRate, kAudioUnitScope_Output, i, &sr, sizeof (sr));
|
||||
}
|
||||
|
||||
UInt32 frameSize = (UInt32) estimatedSamplesPerBlock;
|
||||
AudioUnitSetProperty (audioUnit, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0,
|
||||
&frameSize, sizeof (frameSize));
|
||||
|
||||
setPlayConfigDetails (numInputBusChannels * numInputBusses,
|
||||
numOutputBusChannels * numOutputBusses,
|
||||
sampleRate_, estimatedSamplesPerBlock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue