audio.playTrack
playTrack(sound_name: string, volume: number) → {number}
play the specified audio track
this function automatically set the loop property to true
and keep track of the current sound being played.
me.audio.playTrack("awesome_music");
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
sound_name | string |
audio track name - case sensitive |
||
volume | number |
<optional> |
default |
Float specifying volume (0.0 - 1.0 values accepted). |
Type | Description |
---|---|
number |
the sound instance ID. |