Re: Programmatically Launch Audio MIDI Setup?
Re: Programmatically Launch Audio MIDI Setup?
- Subject: Re: Programmatically Launch Audio MIDI Setup?
- From: Luke Bellandi <email@hidden>
- Date: Tue, 18 May 2004 10:27:44 -0700
Note that you can also force a particular pane from the command line
and programmatically:
Audio MIDI Setup.app/Contents/MacOS/AudioMIDISetup -audiodevice
Audio MIDI Setup.app/Contents/MacOS/AudioMIDISetup -mididevice
Luke
On May 13, 2004, at 9:18 PM, Pete Gontier wrote:
circa 5/13/04 20:43, James Chandler Jr <email@hidden> wrote:
Is there a reliable, relatively simple way to programmatically launch
AMS?
void CoreMIDI_API::SetupStudio (void)
{
FSRef audioMidiSetupAppRef;
ThrowIfError (LSFindApplicationForInfo
('AMDS',nil,nil,&audioMidiSetupAppRef,nil));
FSSpec audioMidiSetupAppSpec;
ThrowIfError (FSGetCatalogInfo
(&audioMidiSetupAppRef,kFSCatInfoNone,
nil,nil,&audioMidiSetupAppSpec,nil));
LaunchParamBlockRec lpbr;
BlockZero (&lpbr, sizeof (lpbr));
lpbr.launchBlockID = extendedBlock;
lpbr.launchEPBLength = extendedBlockLen;
lpbr.launchControlFlags = launchContinue | launchNoFileFlags;
lpbr.launchAppSpec = &audioMidiSetupAppSpec;
ThrowIfError (LaunchApplication (&lpbr));
}
--
Pete Gontier
http://www.m-audio.com/
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.