Improve handler of Device_Control_Panel button

[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 467536]
This commit is contained in:
Nikolay Polyanovskii 2014-06-13 06:46:42 -05:00 committed by Paul Davis
parent 0b93e1b8a4
commit 2cf7eafb21

View file

@ -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);
}