mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 02:26:39 +01:00
Improve handler of Device_Control_Panel button
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 467536]
This commit is contained in:
parent
0b93e1b8a4
commit
2cf7eafb21
1 changed files with 12 additions and 0 deletions
|
|
@ -2055,6 +2055,18 @@ WTErr WCMRCoreAudioDevice::ShowConfigPanel (void */*pParam*/)
|
||||||
{
|
{
|
||||||
LSOpenFSRef(&theAppFSRef, NULL);
|
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);
|
CFRelease (configAP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue