Re: HALOutputUnit (Pt 1)
Re: HALOutputUnit (Pt 1)
- Subject: Re: HALOutputUnit (Pt 1)
- From: William Stewart <email@hidden>
- Date: Tue, 13 Jan 2004 11:38:41 -0800
On 13/01/2004, at 6:12 AM, Robert Grant wrote:
>
Hi Bill,
>
>
I'm trying to understand exactly what happens in this situation - but
>
my brain's a bit slow this morning (every morning?!)
>
>
Do we really use SetInputCallback? I thought this was deprecated for
>
V2 AUs?
>
Should it be SetRenderCallback?
Two different properties -
Deprecated (V1): kAudioUnitProperty_SetInputCallback
Supported (V2) : kAudioUnitProperty_SetRenderCallback -> used to
provide an "callback connection" to provide input data for an AU in its
render operation
Supported (V2) : kAudioOutputUnitProperty_SetInputCallback -> used to
indicate that input is available to be read (and needs to be read from
this callback! if you are using it)
>
>
And will the buffers presented in the callback be filled with the
>
captured audio? Or should we make a call back to the HALOutputUnit to
>
get buffers filled? I'm asking because it sounds like it's backwards
>
which I guess is how the HALOutputUnit generally does input :-)
The callback is JUST a notification. You have to then IN THIS CALLBACK,
make the call to AudioUnitRender to actually get the data as described
previously
Bill
>
>
Thanks,
>
>
Robert.
>
>
>
On Jan 9, 2004, at 7:05 PM, William Stewart wrote:
>
>
>
>
> In the case of a device that doesn't have a in and out (for eg, USB)
>
> the client can register a callback with the AUHAL unit
>
> (kAudioOutputUnitProperty_SetInputCallback) - this then will call you
>
> when the AUHAL unit has input data for you. Please note, due to some
>
> bugs in CA-Panther this WASN'T working as shipped - however, with the
>
> QT 6.5 update we fixed those (so this now works for Panther and Jaguar
>
> systems)...
>
_______________________________________________
>
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
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.