• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programmatically Launch Audio MIDI Setup?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Programmatically Launch Audio MIDI Setup?
      • From: Luke Bellandi <email@hidden>
References: 
 >Programmatically Launch Audio MIDI Setup? (From: "James Chandler Jr" <email@hidden>)

  • Prev by Date: Re: Some basic Audio device questions
  • Next by Date: Re: Modifying afrecord sample file
  • Previous by thread: Programmatically Launch Audio MIDI Setup?
  • Next by thread: Re: Programmatically Launch Audio MIDI Setup?
  • Index(es):
    • Date
    • Thread