[Vorbis-dev] ov_read_float vs. ov_read

Michael Smith msmith at xiph.org
Sun Oct 9 03:51:16 PDT 2005


On 10/9/05, 2spork at informatik.uni-hamburg.de
<2spork at informatik.uni-hamburg.de> wrote:
> Hello,
>
> Am I missing something?

Yes. Integer rounding. You'll find that ov_read_float() returns a
value (between -1 and 1), which, when multiplied by 32768, is not
exactly an integer. That's perfectly normal, and not a problem.

Mike


More information about the Vorbis-dev mailing list