Back

CreateSound

Hello World
Content:
- Methods

Creates a sound object which can play audio files.

snd = gfx.CreateSound( file ) → game object: Sound

Methods

The following methods are available on the Sound object:

Pause()
undefined
Number: milliseconds: delay before playback start
Number: milliseconds: time gap between two loops
String: path to file ( “/absolute/...” or “relative/...” )
Contains the url of the loaded file.
snd.Pause
Pause the playback if the sound is currently palaying.
snd.Play
Start the playback of the current loaded audio file.