melonJS
    Preparing search index...

    Function unfollow

    • Stop tracking a followed sound, leaving it playing where it last was.

      audio.stop() releases tracking on its own; this is for keeping a sound going while detaching it from whatever it was following.

      Parameters

      • id: number

        the playback id to detach

      Returns void

      const id = audio.play("engine", { follow: car });
      audio.unfollow(id); // the hum stays where the car was