Change/read single-bit flags

=> | R0 = | 0
| R1 = | flags clear mask
| R2 = | flags exclusive-or mask

<= | R0 = | preserved
| R1 = | new flags status
| R2 = | old flags status

Flag bits summary

bit | bit clear | bit set
bit 0 | frequency modulation | no frequency modulation
bit 1 | static buffers | transient buffers
bit 2 | independent volume | volume scaled by system volume
bit 3 | deprecated | deprecated
bit 4 | linear interpolation | no interpolation
bit 5 | play mono as mono | play mono as psuedo stereo
bit 6 | reserved | reserved
bit 7 | close at end of play | close at end of file
bit 8 | RMA buffer | dynamic area buffer
bit 9 | Messages enabled | Messages disabled
bit 10 | Open can pre-empt | Open cannot pre-empt

Other bits are reserved and should be zero. Bit 6 was used for an experimental stereo surround mode and is currently disabled. Bit 3 was the old play looping control which has been replaced by PlayIt_SetLoop .

Example:

To set bit 2; | R1=1<<2, R2=1<<2
To clear bit 4; | R1=1<<4; R2=0
To read all bits; | R1=0; R2=0

The default configuration is all bits zero.

[ Parent ] [ Manual root ]