Newbie question about AU Input
Newbie question about AU Input
- Subject: Newbie question about AU Input
- From: "" <email@hidden>
- Date: Mon, 28 Apr 2003 10:08:35 -0400 (EDT)
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.