melonjs
    Preparing search index...

    Function playTrack

    • play the specified audio track
      this function automatically set the loop property to true
      and keep track of the current sound being played.

      Parameters

      • sound_name: string

        audio track name - case sensitive

      • Optionalvolume: number

        Float specifying volume (0.0 - 1.0 values accepted).

      Returns number

      the sound instance ID.

      me.audio.playTrack("awesome_music");