Re: [linux-audio-dev] Converting float to int

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Converting float to int
From: D. Stimits (stimits_AT_idcomm.com)
Date: Wed Oct 31 2001 - 00:25:25 EET


Jörn Nettingsmeier wrote:
>
> Steve Harris wrote:
> >
> > On Mon, Oct 29, 2001 at 04:27:38PM -0700, Joe Pfeiffer wrote:
> > > That's the minimum acceptable limit. It's actually
> > > implementation-dependent; on Intel (quickly looking at
> > > /usr/include/limits.h), it's -32768 and 32767 as you'd expect.
> >
>
> apologies for what's probably a stupid question, but what exactly
> does "clamping" mean ?

Keeping a value between specific limits. Often between 0.0 and 1.0
floating point (at least under OpenGL). It doesn't fully normalize it,
it just limits range.

D. Stimits, stimits_AT_idcomm.com

>
> --
> Jörn Nettingsmeier
> home://Kurfürstenstr.49.45138.Essen.Germany
> phone://+49.201.491621
> http://spunk.dnsalias.org
> http://www.linuxdj.com/audio/lad/


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Oct 31 2001 - 00:22:04 EET