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.
|filename||The name of the sound or melody file to play. |
|volume||The desired tone volume. |
|loop||A boolean flag indicating whether to play the file repeatedly. |
|sr||An optional sample rate at which to play the sound file. A value of zero means to use the sample rate specified in the sound file header. |