Go to the first, previous, next, last section, table of contents.


Data Types

Fixed

Fixed is a signed long integer. It is used to represent decimal numbers without using floating point arithmetics. The decimal point is assumed to be in the middle of the 32 bit integer, thus giving 16 bits for the integer part of the number and 16 bits for the fraction. The largest number that can be stored in a Fixed is +32767.999984741, and the lowest number is -32768.

Example:

 Decimal | Fixed
 --------+----------
  1.0    | 0x00010000
  0.5    | 0x00008000
  0.25   | 0x00004000
  0      | 0x00000000
 -0.25   | 0xffffc000
 -0.5    | 0xffff8000
 -1.0    | 0xffff0000

sposition

sposition (stereo position) is a Fixed, and is used to represent the stereo position of a sound. 0 is far left, 0.5 is center and 1.0 is far right.


Go to the first, previous, next, last section, table of contents.