melonJS
    Preparing search index...

    Function stopTrack

    • Stop the current audio track, and leave no current track behind.

      Only needed where nothing else follows, since playTrack stops the track it replaces: a scene whose successor has no music of its own, or a game going quiet. A no-op when no track is playing.

      Returns void

      me.audio.playTrack("awesome_music");
      me.audio.stopTrack();