From b4bd383a46cc21cea567d6cf5e644beab4a327ee Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 9 Jan 2014 13:57:25 +0000 Subject: [PATCH] Reverted a mistaken change to AU hosting event handling code. --- .../format_types/juce_AudioUnitPluginFormat.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm index a4c5aa8ab9..375b2e7957 100644 --- a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm +++ b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm @@ -943,7 +943,12 @@ private: kAudioUnitScope_Global, 0, &info, sizeof (info)); } - AUEventListenerCreate (eventListenerCallback, this, nullptr, + AUEventListenerCreate (eventListenerCallback, this, + #if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 + CFRunLoopGetMain(), + #else + nullptr, + #endif kCFRunLoopDefaultMode, 0, 0, &eventListenerRef); for (int i = 0; i < parameters.size(); ++i)