On Sun, Feb 22, 2015 at 8:35 PM, Paul Davis <[email protected]>
wrote:

> Because an AudioBuffer is not related to an AudioStream. AudioBuffers can
> be passed into something that will feed them into a stream,


... ​or read them from a stream,


> and the buffer format and stream format may be different.


The buffer doesn't specify any other format property though, e.g. whether
it's 32-bit floating point of 16-bit signed.


> Consider the trivial case of merging two single channel AudioBuffers into
> a two channel stream.


How will it know which channel (e.g. left or right) is in each buffer?​
Seems arbitrary.

Besides, let's say the stream is stereo interleaved. I know non-trivial
conversion and resampling can occur within the AU to compensate format
differences between its input and output, but for this, the input should
receive data in its expected format (i.e. according to the Stream Format).
For example, I cannot configure an AU to expect signed 16-bit on its input
scope but somehow feed it 32-bit float buffers.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to