Re: AudioUnitGetParameterProc
Re: AudioUnitGetParameterProc
- Subject: Re: AudioUnitGetParameterProc
- From: "Benjamin J. Schneider" <email@hidden>
- Date: Sun, 11 Apr 2004 22:03:59 -0400
Thanks for the pointer to the CAAudioUnit code. I do, however, have
more questions.
The AU I am working with instantiates the DLSMusicDevice component. I
have it receiving MIDI and playing MIDI files. What I'd like to do is
show parameter changes (pan, pitch bend, etc.) in sort of a "flying
faders" automation mode. Based on the constants given in the
documentation, I assumed I could use the AudioUnitGetParameterProc to
do this but I'm still not understanding how as the CAAudioUnit.cpp file
has very little commenting and I can't find robust documentation
anywhere. So...
Am I to use AudioUnitGetProperty call, passing my function pointer in
the outData param? Maybe I'm being ignorant here, but that's what it
looks like is happening in this sample, but I can't re-implement it as
the pointer is being modified, thus causing my app to crash. I was
unable to find other places where the function pointer was passed.
If AudioUnitGetProperty isn't correct, should I be using something like
AudioUnitAddPropertyListener or AudioUnitAddRenderNotify, etc? Those
make more sense to me, but I'm admittedly lost.
Sorry for the ignorance and thanks for the help,
Ben
On Apr 9, 2004, at 8:09 PM, William Stewart wrote:
In the current SDK (http://developer.apple.com/audio) there's code in
the Public Utility source CAAudioUnit that does this
Bill
On 09/04/2004, at 2:14 PM, Benjamin Schneider wrote:
Hi all,
Please excuse the rudimentary question, but please answer ;-)
In many cases, a pointer to a callback procedure is a parameter of an
initialization function, etc. In the case of
AudioUnitGetParameterProc and other similar callback definitions, I
can't find reference to how to tell the AU to use this procedure. Can
anyone point me to a document or sample that shows how to set this up?
Thanks,
Ben
_______________________________________________
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.
--
mailto:email@hidden
tel: +1 408 974 4056
_______________________________________________________________________
_
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
_______________________________________________________________________
_
__
_______________________________________________
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.