mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
AudioWorkgroups: Missing macro bug
Only include context observer block when workgroup types available.
This commit is contained in:
parent
af7530e69c
commit
ae805ffe3f
1 changed files with 3 additions and 0 deletions
|
|
@ -2021,6 +2021,8 @@ private:
|
|||
int totalInChannels, totalOutChannels;
|
||||
HeapBlock<bool> pulledSucceeded;
|
||||
HeapBlock<MIDIPacketList> packetList { packetListBytes, 1 };
|
||||
|
||||
#if JUCE_AUDIOWORKGROUP_TYPES_AVAILABLE
|
||||
ObjCBlock<AURenderContextObserver> contextObserver { ^(const AudioUnitRenderContext* context)
|
||||
{
|
||||
if (juceFilter == nullptr)
|
||||
|
|
@ -2029,6 +2031,7 @@ private:
|
|||
auto workgroup = makeRealAudioWorkgroup (context != nullptr ? context->workgroup : nullptr);
|
||||
juceFilter->audioWorkgroupContextChanged (std::move (workgroup));
|
||||
} };
|
||||
#endif
|
||||
|
||||
ThreadLocalValue<bool> inParameterChangedCallback;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue