Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
getdunne committed Sep 11, 2023
2 parents 60036f9 + 2882cdb commit dfaa64f
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,12 +586,7 @@ ComponentResult GetProperty (AudioUnitPropertyID inID,
{
if (auto* ptr = (AURenderContextObserver*) outData)
{
*ptr = ^(const AudioUnitRenderContext* context)
{
if (juceFilter)
juceFilter->audioWorkgroupContextChanged (makeRealAudioWorkgroup (context != nullptr ? context->workgroup : nullptr));
};

*ptr = contextObserver;
return noErr;
}
}
Expand Down Expand Up @@ -2024,6 +2019,14 @@ explicit ScopedMIDIEventListBlock (AUMIDIEventListBlock b) : midiEventListBlock
int totalInChannels, totalOutChannels;
HeapBlock<bool> pulledSucceeded;
HeapBlock<MIDIPacketList> packetList { packetListBytes, 1 };
ObjCBlock<AURenderContextObserver> contextObserver { ^(const AudioUnitRenderContext* context)
{
if (juceFilter == nullptr)
return;

auto workgroup = makeRealAudioWorkgroup (context != nullptr ? context->workgroup : nullptr);
juceFilter->audioWorkgroupContextChanged (std::move (workgroup));
} };

ThreadLocalValue<bool> inParameterChangedCallback;

Expand Down

0 comments on commit dfaa64f

Please sign in to comment.