Re: SetRenderCallback vs. SetInputCallback
Re: SetRenderCallback vs. SetInputCallback
- Subject: Re: SetRenderCallback vs. SetInputCallback
- From: Brad Ford <email@hidden>
- Date: Fri, 16 Jul 2004 13:15:04 -0700
No. This is not right. The V1 property that has been deprecated is
kAudioUnitProperty_SetInputCallback.
kAudioOutputUnitProperty_SetInputCallback (notice the addition of
*OUTPUT* between Audio and Unit) is a V2 call that you can make on an
AUHAL audio unit. You only use this if you wish to use the output unit
as an _input_ unit (for gathering input data from, say, a microphone).
But as Stephen says, you always use
kAudioUnitProperty_SetRenderCallback on a V2 output unit (AUHAL or
default) to play audio out to your speakers.
-Brad Ford
QuickTime Engineering
On Jul 16, 2004, at 12:45 PM, Stephen Davis wrote:
As Bill mentions, there are two options:
kAudioOutputUnitProperty_SetInputCallback <-- V1
kAudioUnitProperty_SetRenderCallback <-- V2
The short answer is that, yes, you can use either property for the
default output unit. V2 is preferred but, If you want your code to
run on Mac OS X 10.1.x, you need to use the V1 version.
stephen
On Jul 16, 2004, at 12:08 PM, Carlos Eduardo Mello wrote:
Does this mean that I should use
kAudioOutputUnitProperty_SetInputCallback to register my callback to
an AudioOutputUnit?
I read and (believe) I understood the information in the SDK about v1
and v2. That's why I used kAudioUnitProperty_SetRenderCallback in My
AudioUnit. It worked and sounded right, so I thought I had it right.
Now, The only CoreAudio stuff I am using is an AudioOutputUnit to
send my sound to the default output. So in this case, can I use
either property to set up my input callback?
On Thursday, July 15, 2004, at 11:27 PM, William Stewart wrote:
That's a different property:
kAudioOutputUnitProperty_SetInputCallback
notice this is kAudio***OUTPUT*** (my emphasis because of obscure
naming conventions we've used here ;-)
Not to be confused with (from AudioUnitProperties.h)
//kAudioUnitProperty_SetInputCallback = 7 -> deprecated - see
AUNTComponent.h
The following
kAudioUnitProperty_SetRenderCallback = 23,
Is used to provide input via a callback to a V2 audio unit (the only
ones we care about).
HTH
Bill
_______________________________________________
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.