How to use the howler.Howler.unload function in howler

To help you get started, we’ve selected a few howler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github avgjs / avg-core / src / plugins / audio / manager.js View on Github external
export function setSaveData(data) {
  Howler.unload();
  Pool = {};

  Howler.mute(data.globalMuted);
  Howler.volume(data.globalVolume);

  ChannelVolume = data.channelVolume;

  const channelData = data.channelData;

  for (const item of channelData) {
    create(item.channel, item.src, {
      volume: item.volume,
      loop: item.loop,
      autoplay: false,
      mute: item.mute,
      rate: item.rate
github neophob / wpc-emu / client / scripts / lib / sound.js View on Github external
constructor(audioData = NO_SOUND) {
    Howler.unload();

    this.bong = new Howl({
      volume: 1.0,
      src: BONG_SOUND,
    });

    this.player = createSoundPlayer(audioData);
  }
github crowbartools / Firebot / gui / app / services / soundService.js View on Github external
service.stopAllSounds = function() {
                logger.info("Stopping all sounds...");
                Howler.unload();
            };
github DeekyJay / SoundwaveInteractive / src / redux / modules / Sounds.js View on Github external
killAllSounds: () => {
    Howler.unload()
    return {
      type: constants.KILL_ALL_SOUNDS
    }
  }
}