Re: Programmatically Launch Audio MIDI Setup?
Re: Programmatically Launch Audio MIDI Setup?
- Subject: Re: Programmatically Launch Audio MIDI Setup?
- From: Pete Gontier <email@hidden>
- Date: Thu, 13 May 2004 21:18:58 -0700
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.