• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Out-of-range samples
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Out-of-range samples
      • From: "James Chandler Jr" <email@hidden>
  • Prev by Date: AU Synth
  • Next by Date: AUAudioFilePlayer and DLS Synth
  • Previous by thread: Re: Intel iMac (framework problem with Xcode 2.2.1)
  • Next by thread: Re: Out-of-range samples
  • Index(es):
    • Date
    • Thread