All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: About integer64
@ 2002-05-09 11:07 Paul Davis
  2002-05-09 12:32 ` Abramo Bagnara
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Davis @ 2002-05-09 11:07 UTC (permalink / raw)
  To: Abramo Bagnara; +Cc: Jaroslav Kysela, alsa-devel

>
>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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-05-11 15:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200205091256.OAA26239@alsa.alsa-project.org>
2002-05-09 13:25 ` Re: About integer64 Abramo Bagnara
2002-05-09 13:40   ` Paul Davis
2002-05-09 13:56     ` Abramo Bagnara
2002-05-11 15:19     ` James Courtier-Dutton
2002-05-09 11:07 Paul Davis
2002-05-09 12:32 ` Abramo Bagnara
2002-05-09 12:57   ` Paul Davis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.