Re: Out-of-range samples
Re: Out-of-range samples
- Subject: Re: Out-of-range samples
- From: "James Chandler Jr" <email@hidden>
- Date: Thu, 2 Feb 2006 12:47:07 -0500
Yes, it is very useful to adjust an EQ, reverb, or whatever, without having to
worry whether the EQ will exceed 0 dB and clip, as long as there is a master
volume control, limiter, or some other code downstream to attenuate the final
result back below 0 dB.
JCJR
----- Original Message -----
From: "Erik Rose" <email@hidden>
To: "Jeff Moore" <email@hidden>
Cc: "CoreAudio API" <email@hidden>
Sent: Thursday, February 02, 2006 11:37 AM
Subject: Re: Out-of-range samples
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
_______________________________________________
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