From: Paul Davis Subject: Re: About integer64 Date: Thu, 09 May 2002 07:07:53 -0400 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3CDA2EE2.A3C6D824@alsa-project.org> Return-path: In-Reply-To: Your message of "Thu, 09 May 2002 10:10:10 +0200." <3CDA2EE2.A3C6D824@alsa-project.org> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Abramo Bagnara Cc: Jaroslav Kysela , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org > >I don't think that's a bad thing to have support for 64 bit integers >(perhaps for future use, who knows), but I think that to use this to >store a fixed point float is a big mistake. > >If you think for it you realize that it's *not* an integer and >applications are betrayed in their expectation. in this case, it *is* an integer. your original question was about why its 64 bits - i think that comes from the fixed point internal arithmetic. but the end result is a straightforward 64 bit little endian integer that needs scaling to get the actual RMS value. which actually creates another problem that i've noticed with the control API. INTEGER and INTEGER64 assume that the control value is signed. there is no way to infer from the control element info that its unsigned. this isn't a "deep" problem, but it will mess up user interfaces that present a large unsigned value and end up displaying it as a negative number. --p _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net