alDoubleToFixed(3dm) alDoubleToFixed(3dm)
alFixedToDouble, alDoubleToFixed - convert between AL fixed-point and
double-precision floating-point
#include <dmedia/audio.h>
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.
alParams(3dm)
PPPPaaaaggggeeee 1111 [ Back ]
|