Audio unit hosting
Audio unit hosting
- Subject: Audio unit hosting
- From: James Membrez <email@hidden>
- Date: Thu, 19 Feb 2009 12:10:15 -0500
I am a neophyte at working with audio units, so please forgive me if I am asking questions the answers to which seem obvious to others.
I want to provide a midi sequencer application I am working on with the capability to host audio units. I have studied the audio unit documentation (including Tech Note 2104), the examples in the audio unit SDK and the appropriate header files. At this point, I have been successful at writing code to find an appropriate component (in this case, a music device), set up an AUGraph with the music device and an output unit, open a view window, and install an AU event listener. The problem is this: none of the controls in the view window will respond to user input, with an occasional exception for popup menus (such as the one in the DLS audio unit that allows one to select a source for instruments). The only mention of a similar problem that I found on this mailing list is from a short thread in 2003. My understanding is that the audio unit view handles all of its own events. So what step am I missing?
A related question: when using the function AUEventListenerAddEventType, does the "inObject" parameter represent the object that generated the event? If so, is it always necessary to specify such an object or would that depend on the host program's needs? Would using the "ControlRef" returned by the AUEventListenerCreate function be appropriate here as the "inObject" parameter? Or is that parameter the object in the host app that is interested in knowing about a particular event? The documentation I have seen on this point seems ambivalent to me.
Thank you in advance for your assistance.
James |
_______________________________________________
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