alFixedToDouble, alDoubleToFixed - convert between AL fixed-point and
long long alDoubleToFixed(double d)
double alFixedToDouble(long long f)
d expects a double-precision value.
f expects a 64-bit fixed-point value (long long).
alDoubleToFixed converts from a double-precision floating-point value to
the closest AL-format (32.32) fixed-point value.
alFixedToDouble converts from an AL-format (32.32) fixed-point value to
the closest double-precision floating-point value.
Neither function will return errors.
PPPPaaaaggggeeee 1111 [ Back ]