Load

Syntax

Sound:Load(String filename, Number soundhandler)

Description

Loads a WAV/MP3/OGG file to buffer to be handled by a Number variable.

String filename - a string value indicating the location of the sound file.

Number soundhandler - a Number variable to handle the sound buffer.

Note

soundhandler's value should not be changed unless you know what you are doing.

Example

function main() {
  Var:Number snd; //declares a Number variable to be the sound-handler
 
  Sound:Load("bgmusic.ogg", snd) //loads a sound file to buffer to be handled by 'snd'
 
  Sound:Play(snd) //plays the sound buffer handled by 'snd'
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net