[vorbis-dev] Problems supporting rint.
Michael Smith
msmith at labyrinth.net.au
Sun Aug 27 19:31:27 PDT 2000
>Any ideas on how I can get around calling rint and still get correct
>functionality and file size? Why do I have these differences?
You're changing the mathematics involved, so differences are to be
expected. The solution is pretty simple - just do what is done for win32
(see os.h, I think) - we #define rint(x) floor((x) + 0.5)
This is close enough for the purposes of vorbis - under certain rare
circumstances, it can produce slightly different results, but we don't care
about those. The win32 encoder still produces bit-identical results.
Michael
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
More information about the Vorbis-dev
mailing list