Re: AudioUnitGetParameterProc
Re: AudioUnitGetParameterProc
- Subject: Re: AudioUnitGetParameterProc
- From: William Stewart <email@hidden>
- Date: Mon, 12 Apr 2004 10:22:52 -0700
So there are some confusing comments here...
AU's are meant to be used as an API... whilst of course it is possible,
its not really intended that an AU should instantiate another AU (in
fact mostly this is backwards...)
Perhaps it would be better to provide a short, concise description of
what you are trying to do? If you want to just play MIDI files, then
have a closer look at the PlaySequence sample code... that should give
you some pointers about API you need to know about, the relationship
between an AU and an AUGraph (and in that particular case) how they can
be related to timing services provided by the Sequence and
SequencePlayer objects
Bill
On 11/04/2004, at 7:03 PM, Benjamin J. Schneider wrote:
>
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.
>
>
>
>
--
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.