• 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: Subject: MusicDevice/HandleNoteOne/Render
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subject: MusicDevice/HandleNoteOne/Render


  • Subject: Re: Subject: MusicDevice/HandleNoteOne/Render
  • From: Daan Hermans <email@hidden>
  • Date: Tue, 28 Jun 2005 23:42:14 +0200

Title: Re: Subject: MusicDevice/HandleNoteOne/Render
Thanks, and now I could even copy-paste it from your mail, because I'm indeed debugging with AULab. Somehow I cannot seem to get working what I expect to see though. What I'm currently doing is:
- put a breakpoint in my c++ code within my Initialize(void) function
- compiling my project into /Library/Audio/Plug-Ins/Components folder
- moving the plugin from the /Development folder into the /Components folder (because AULab can else not find the plugin)
- setting AULab as the executable for debugging on the way descirbed below
- adjust the working directory for this executable to /Library/Audio/Plug-Ins/Components (hope this is right, but this is where the plugin is at the time of execution)
- push the debug button

At that time AULab is launched, I creat a new Audio Unit Instrument track (Edit -> Add Audio Unit Instrument...), select my plug in it and nothing happens. I would suspect that the Initialize(void) function would be called by this time, awaking my breakpoint in the debugger, but nothing happens there. If I hit the 'pause' button in the debugger, I get all kinds of lower level looking code, without any thing that I can trace back to my own code (hey that's what compilers are for), not even to AUBase class kind of things.

So, any hints on what I'm not doing the XCode way??

Once again, any help welcome.

Daan Hermans
AudioNerdz



This might save you some hair pulling, and was something I had to learn the hard way.  If you want to step-debug your plug-in, you'll need to set up a custom executable in your Xcode project (Project -> New Custom Executable).  The secret to getting this to work properly is that the Executable Path should extend all the way to your host's actual *binary*, nestled a couple of levels below the package (.app) directory.

For example, to set up AU Lab as a custom executable, the full path would be:

  /Developer/Applications/Audio/AU Lab.app/Contents/MacOS/AU Lab

You'll have to type this in by hand, as unfortunately when using the "choose" button to choose your path, the nav dialog doesn't allow access past the .app level (argh).

Have fun,
Bill

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
>z.com

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Subject: MusicDevice/HandleNoteOne/Render
      • From: William Stewart <email@hidden>
References: 
 >Re: Subject: MusicDevice/HandleNoteOne/Render (From: Bill Preder <email@hidden>)

  • Prev by Date: Re: Subject: MusicDevice/HandleNoteOne/Render
  • Next by Date: Re: Subject: MusicDevice/HandleNoteOne/Render
  • Previous by thread: Re: Subject: MusicDevice/HandleNoteOne/Render
  • Next by thread: Re: Subject: MusicDevice/HandleNoteOne/Render
  • Index(es):
    • Date
    • Thread