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...")
 
m
 
Line 7: Line 7:
  
 
[[Category:Mini Micro]]
 
[[Category:Mini Micro]]
 +
[[Category:Soda]]

Latest revision as of 19:22, 5 August 2021

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