Sound
WARNING: MacGap2 code has not been finalised for this command.
Methods
MacGap.Sound.play()
Play a sound
macgap.sound.play("./my/sound.mp3")
MacGap.Sound.playSystem()
Play a system sound
macgap.sound.playSystem("Funk");
Optionally, supply a callback to run when the sound finishes playing.
macgap.sound.playSystem("Funk", function(){
alert('Sound finished playing');
});