Re: Out-of-range samples
Re: Out-of-range samples
- Subject: Re: Out-of-range samples
- From: Erik Rose <email@hidden>
- Date: Thu, 2 Feb 2006 11:37:07 -0500
On Jan 30, 2006, at 1:39 PM, Jeff Moore wrote:
That said, while the nominal range of a floating point sample is
defined to be between -1 and 1, there are never any guarantees that
any stage in the pipeline involved will not produce out-of-range
samples. Hardware can do it. Software can do it.
[snip]
If it is important to your processing that all the samples be in
range, it is best to ensure that by clipping the buffer yourself
before using it.
Thanks to you and all who replied; this is immensely helpful! I will
indeed clip it myself, and I'll be sure to provide some kind of gain
control, too.
I had been laboring under the false assumption that [-1, 1] was the
be-all, end-all bound of values within CoreAudio. That assumption
probably grew out of my experience with ye olde toolbox routines,
around which I wrote my last audio software, 10 years ago. :-) I can
see it being very handy, though, especially in an environment where
it's common to chain filters together, to not be continually throwing
away data just to get things back into nominal range.
Thanks again!
Erik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden