Stop a sound effect.

const audioSource = this.assetManager.getAudio("audio/sfx/coin.ogg");
stopSfx(audioSource);
  • Parameters

    • audioSource: HTMLAudioElement

      The audio source to stop.

    Returns void