Skip to content

Commit

Permalink
AudioWorkgroups: Missing macro bug
Browse files Browse the repository at this point in the history
Only include context observer block when workgroup types available.
  • Loading branch information
chromadevlabs committed Sep 13, 2023
1 parent af7530e commit ae805ff
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -2021,6 +2021,8 @@ explicit ScopedMIDIEventListBlock (AUMIDIEventListBlock b) : midiEventListBlock
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)
Expand All @@ -2029,6 +2031,7 @@ explicit ScopedMIDIEventListBlock (AUMIDIEventListBlock b) : midiEventListBlock
auto workgroup = makeRealAudioWorkgroup (context != nullptr ? context->workgroup : nullptr);
juceFilter->audioWorkgroupContextChanged (std::move (workgroup));
} };
#endif

ThreadLocalValue<bool> inParameterChangedCallback;

Expand Down

0 comments on commit ae805ff

Please sign in to comment.