1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AU Client: Fix variable naming

This commit is contained in:
reuk 2021-05-12 15:54:53 +01:00
parent 668f16f0ec
commit 40fa4ff90c
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -657,17 +657,17 @@ public:
case kAudioUnitProperty_OfflineRender:
{
auto shouldBeRealtime = (*reinterpret_cast<const UInt32*> (inData) != 0);
const auto shouldBeOffline = (*reinterpret_cast<const UInt32*> (inData) != 0);
if (juceFilter != nullptr)
{
auto isCurrentlyRealtime = juceFilter->isNonRealtime();
const auto isOffline = juceFilter->isNonRealtime();
if (isCurrentlyRealtime != shouldBeRealtime)
if (isOffline != shouldBeOffline)
{
const ScopedLock sl (juceFilter->getCallbackLock());
juceFilter->setNonRealtime (shouldBeRealtime);
juceFilter->setNonRealtime (shouldBeOffline);
juceFilter->prepareToPlay (getSampleRate(), (int) GetMaxFramesPerSlice());
}
}