1
0
Fork 0
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:
Oliver James 2023-09-13 09:43:59 +01:00
parent af7530e69c
commit ae805ffe3f

View file

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