Play a file with extra options.
Play the specified file. The filename may be any valid string expression. Volume should be a number from 0 (silent) to 4 (loudest). Play the file repeatedly if loop is true. The sound file can either be an RSO file containing PCM or compressed ADPCM samples or it can be an NXT melody (RMD) file containing frequency and duration values.
- Parameters:
-
| _file | The name of the sound or melody file to play. |
| _vol | The desired tone volume. |
| _loop | A boolean flag indicating whether to play the file repeatedly. |