Attempt to passively auto-detect a sample file format. New programs are recommended to use PlayIt_FileInfo instead.

=> | R0 = | pointer to file name

<= | R0 = | preserved (V clear) or error block (V set)
| R1 = | format
| R2 = | frame rate
| R3,R4 = | range of sample data
| R5 = | auxiliary paramater
| R6 = | length of sample in frames

This SWI can be used to idenitfy a sample, returning the same information as PlayIt_Open in auto-detect mode, except that the number of frames is also returned and the operation is passive so doesn't affect the currently playing sample. The data returned in R1-R5 is exactly as if PlayIt_Open was used so see that SWI for further information. The number in R6 is the same as returned by PlayIt_SampleInfo (which requires the file to be open).

[ Parent ] [ Manual root ]