Re: Opinions sought: AudioUnit Rendering
Re: Opinions sought: AudioUnit Rendering
- Subject: Re: Opinions sought: AudioUnit Rendering
- From: Doug Wyatt <email@hidden>
- Date: Wed, 6 Mar 2002 09:14:03 -0800
While this sort of protocol has its uses, in this case it would be a
seriously non-backwardly-compatible change to the existing AudioUnit
API. It would require that all existing AudioUnits check to see whether
they actually got all the data they asked for, though the existing API
contract for RenderSlice is that the AU must provide as much data as was
asked for. So we can't do that.
Doug
On Tuesday, March 5, 2002, at 11:19 , Douglas Wright wrote:
I prefer to have the byte count set to the number of valid samples in
the
buffer. The buffer can still be there and full of zeros for units that
don't check. For units that do, units that would be expensive to leave
on
and who's authors take the time to figure this out, they can handle 0,
or
any other number for that matter, up to the actual size of the buffer.
So
if a sampler unit finishes playing back a sample half way through a
buffer
and the rest is filled with silence, it can indicate that as well as
cases
where the entire buffer is silence.
--
Doug Wyatt
work: email@hidden (CoreAudio)
personal: email@hidden
http://www.sonosphere.com
"Better to look like an idiot than to be one."
-- dsw
_______________________________________________
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.