• 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: Calculating peak level in db
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calculating peak level in db


  • Subject: Re: Calculating peak level in db
  • From: Matthew Xavier Mora <email@hidden>
  • Date: Mon, 14 Oct 2002 08:31:53 -0700

At 11:23 AM +0100 10/13/02, Richard Dobson wrote:
Conversely, on converting 16bit ints to float, which is what I think you are referring to, the usual trick is to convert the sample directly to float and then divide by 32768, so that -32768 converts to -1.0, and 32767 converts to a value very very very slightly less than 1.0 (I guess the driver writers will be able to desccribe precisely what they do here...).

For speed reasons we try and avoid divide operations if at all possible.


Matt
_______________________________________________
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.

  • Follow-Ups:
    • Re: Calculating peak level in db
      • From: Richard Dobson <email@hidden>
References: 
 >Re: Calculating peak level in db (From: Gerd Castan <email@hidden>)
 >Re: Calculating peak level in db (From: Brian Willoughby <email@hidden>)
 >Re: Calculating peak level in db (From: Richard Dobson <email@hidden>)

  • Prev by Date: Re: AU : carbon view how to ?
  • Next by Date: Re: AU : carbon view how to ?
  • Previous by thread: Re: Calculating peak level in db
  • Next by thread: Re: Calculating peak level in db
  • Index(es):
    • Date
    • Thread