Browse Source

AU Client: Only call prepareToPlay() from SetProperty() if already in prepared state

pull/22/head
attila 4 years ago
parent
commit
cc8aa57793
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm

+ 3
- 1
modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm View File

@@ -633,7 +633,9 @@ public:
const ScopedLock sl (juceFilter->getCallbackLock());
juceFilter->setNonRealtime (shouldBeOffline);
juceFilter->prepareToPlay (getSampleRate(), (int) GetMaxFramesPerSlice());
if (prepared)
juceFilter->prepareToPlay (getSampleRate(), (int) GetMaxFramesPerSlice());
}
}


Loading…
Cancel
Save