add Sound
fun addSound(name: String, dataFormat: String, assetId: String, rate: Int? = null, sampleCount: Int? = null, path: Path? = null): Sound
Adds a sound to the stage.
Parameters
name
The name of the sound.
data Format
The format of the sound file.
asset Id
The MD5 hash of the sound file.
rate
The sample rate.
sample Count
The number of samples.
path
The local path to the sound file.
Adds a sound from a local file to the stage.
Parameters
path
The path to the sound file.
name
The name for the sound.