Difference between revisions of "File.loadSound"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "The <c>file.loadSound</c> loads a sound file from disk, returning a Sound object. The file may be in either WAV or OGG format. == Example == <ms>snd = file.loadSoun...")
 
(No difference)

Latest revision as of 18:13, 1 August 2020

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