Re: frame count, audio output unit
Re: frame count, audio output unit
- Subject: Re: frame count, audio output unit
- From: David Duncan <email@hidden>
- Date: Mon, 19 Apr 2004 23:15:57 -0400
On Apr 19, 2004, at 11:01 PM, john wrote:
>
Thanks for the reply. It definitely is passing that value as the
>
inNumFrames parameter. However, I changed the AU setup code to use
>
FindNextComponent() and OpenAComponent() instead of
>
OpenDefaultAudioOutput() and now it passes the correct amount of
>
frames.
>
>
Here's the AU output setup code where it's weird, what's the problem
>
with this?
>
>
AURenderCallbackStruct inputCallbackStruct;
>
>
if (!OpenDefaultAudioOutput(&theAudioOutput))
When you use OpenDefaultAudioOutput(), you get a V1 output unit, which
expects a different callback signature. From looking in the headers it
looks like inNumFrames would have actually be your AudioBufferList*
(and I'm not certain how your code would have worked in that case
either). When you switched to FindNextComponent() & OpenAComponent()
you get a V2 audio unit, which works as you expect.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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.