Re: audio unit mixers & oop
Re: audio unit mixers & oop
- Subject: Re: audio unit mixers & oop
- From: Bill Stewart <email@hidden>
- Date: Thu, 06 Dec 2001 19:36:09 -0800
on 6/12/01 3:15 PM, David Shaffer wrote:
>
> nope, but you can just pass a pointer to your object as the user data
>
> for
>
> your callback
>
>
will this work if i have many things going to the same callback..
>
>
here is what i want..
>
>
input (device) --> mixer (unit) --> |
>
data (mData) --> mixer (unit) --> |
>
. |--> mixer (unit) --> output (unit)
>
. |
>
data (mData) --> mixer (unit) --> |
>
>
the same as a mixing console.. except that channels have stored
>
(previously recorded) mData and the input is live input from a mic or
>
some device.
>
>
i don't want (trying to avoid) a bunch of hardcoded callbacks for each
>
channel.
>
>
also, there is (in reality) an effects unit after each sub-mix unit..
>
>
ahh, one other thing.. is there a way to get the "master" mData from the
>
output unit? i set an input callback to get the mData but it seems to
>
be only for adding extra data to the master.
Yes - the render notification procs will call you like this:
PreRender - notification proc
Call to renderSlice
PostRender - notification proc
On the AUHalOutput units the Post render notification proc's mData will be
the data that will be given to the AudioDevice it is attached to and in the
format that the device expects.
Bill
>
>
btw.. setting the "pan" on a mixer unit does not have any effect and no
>
error is being returned.
Hmmm.... Could you elaborate on this
Bill
>
_______________________________________________
>
coreaudio-api mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
Cat: "Leave me alone, I'm trying to nap... Ah, What's that clicking noise?"
__________________________________________________________________________