From 2cf7eafb219a2f779ff1fa39c3bd8d79b366a27a Mon Sep 17 00:00:00 2001 From: Nikolay Polyanovskii Date: Fri, 13 Jun 2014 06:46:42 -0500 Subject: [PATCH] Improve handler of Device_Control_Panel button [git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 467536] --- .../devicemanager/WCMRCoreAudioDeviceManager.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.cpp index 10da07fef1..bf613ff090 100644 --- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.cpp +++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRCoreAudioDeviceManager.cpp @@ -2055,6 +2055,18 @@ WTErr WCMRCoreAudioDevice::ShowConfigPanel (void */*pParam*/) { LSOpenFSRef(&theAppFSRef, NULL); } + else + { + // open default AudioMIDISetup if device app is not found + CFStringRef audiMidiSetupApp = CFStringCreateWithCString(kCFAllocatorDefault, "com.apple.audio.AudioMIDISetup", kCFStringEncodingMacRoman); + theError = LSFindApplicationForInfo(kLSUnknownCreator, audiMidiSetupApp, NULL, &theAppFSRef, NULL); + + if (!theError) + { + LSOpenFSRef(&theAppFSRef, NULL); + } + } + CFRelease (configAP); }