rb.audio plays sound files and a short tone. A script reaches for it to
signal that something happened, such as a beep when a toggle turns on, or to
play an alert or a loop of music while it works.
This script halves the master volume and beeps, then plays music.ogg from
its folder on a loop for ten seconds and stops it:
options is { volume = 0..1 (default 1), loop = false }. A sound starts at
its volume times the master volume. Paths follow the
rb.file rules. A file that cannot be opened or decoded
raises. Sounds stop when the script stops. The
SoundHandle controls one sound.