Return the current general status of PlayIt.

=> no parameters

<= R0 = play status bits:
bit 0: set if currently playing
bit 1: set if currently paused
bit 2: set if a sample file is open
bit 3: a mono file is playing on a stereo device
bit 4: a stereo file is playing on a mono devive
other bits are reserved
R1 = frame position in sample



Do not assume the undefined bits in R0 are zero as some are used internally by PlayIt. The only possible states of bits 0-2 are ”no file open• (000), ”open and playing• (101) and ”open and paused• (110).



Bits 3 and 4 are actually flags used internally by PlayIt to simplify checking of mixing requirements which might possibly be of interest to a monitor. This can also be discovered (albeit with more work) from the number of channels reported by the sound file (PlayIt_SampleInfo ) and hardware (PlayIt_DriverInfo ).



R1 is the position of the playback pointer in the sample file in sample frames. The actual byte offset will be (frames) * (bytes/frame) + (header size). This can be used to directly find the time index into the sample by dividing it by the frame rate (see PlayIt_SampleInfo ). R1 should be treated as undefined if no file is open even though it will be zero in this case.


[ Parent ] [ Manual root ]


Created by SHtoHTML v1.20