File.loadSound

From MiniScript Wiki
Jump to navigation Jump to search

The file.loadSound loads a sound file from disk, returning a Sound object. The file may be in either WAV or OGG format.

Example

snd = file.loadSound("/sys/sounds/bonus.wav")
snd.play