Re: Newbie question about AU Input
Re: Newbie question about AU Input
- Subject: Re: Newbie question about AU Input
- From: Bill Stewart <email@hidden>
- Date: Mon, 28 Apr 2003 14:32:44 -0700
It sounds to me like you are dealing with a V1 audio unit (the
component type would be 'aunt')
If you have a V2 unit (which is the way we recommend) then you should
be seeing a buffer for each channel specified in your format.
There's also a very useful class in the SDK in PublicUtility called
CAStreamBasicDescription - to set up a description for a V2 unit you
should do this:
myStreamDesc.SetCanonical (numChannels, false)
(where false is telling it to create a deinterleaved desc that is used
with the V2 units)
Bill
On Monday, April 28, 2003, at 07:08 AM, email@hidden wrote:
Sorry for the question, maybe it's silly, but I need this info.
I read that there are two ways to give data input to an AU, one by
connecting it to another AU or a device, and the other by giving data
directly by means of a callback function. I am going to use the second
one, so I need to fill the AudioBuffers in the AudioBufferList.
It happens that my data are pure float values within the 1.0 and -1.0
range.
I 've tried to read the properties of the buffers and I've seen that
there is only one buffer and that the datasize is 4096. Since my data
are stereo, I've tried to set the input stream format
(AudioUnitSetProperty passing the correct property parameter), but
I've got the message Unknown format (I've used LinearPCM, number of
channels 2, number of buffers still 1 - for me it's ok - packet size =
sizeof(Float32), frames per packet = 1 ).
Could anyone of you give me an hint with - maybe - the correct stream
format, please? Code examples are welcome, of course.
The AU I am trying to use is an Effect AU, such as delay. But I tried
to use a different one and the result was the same.
Thanks a lot for any possible answer.
Dave.
The most personalized portal on the Web!
_______________________________________________
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.