• 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: 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.


References: 
 >Re: Programmatically Launch Audio MIDI Setup? (From: Pete Gontier <email@hidden>)

  • Prev by Date: Re: au with cocoa ui hosting (was small buffer size)
  • Next by Date: Re: au with cocoa ui hosting (was small buffer size)
  • Previous by thread: Re: Programmatically Launch Audio MIDI Setup?
  • Next by thread: iMic Bug?
  • Index(es):
    • Date
    • Thread