How to use the howler.Howler.mute 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
    });

    // Pool[item.channel].seek(item.seek);
github madebywild / konterball / src / javascripts / sound-manager.js View on Github external
mute() {
    $('.mute img').attr('src', 'images/icon-mute.svg');
    localStorage.muted = 'true';
    Howler.mute(true);
    this.muted = true;
  }
github melonjs / melonJS / src / audio / audio.js View on Github external
api.unmuteAll = function () {
            Howler.mute(false);
        };
github GuoGuang / ibole / expansions / music / player.js View on Github external
toggleMuted() {
      Howler.mute(!music.state.muted)
      music.state.muted = !music.state.muted
    },
github madebywild / konterball / src / javascripts / sound-manager.js View on Github external
focus() {
    if (!this.muted) {
      Howler.mute(false);
    }
  }
github melonjs / melonJS / src / audio / audio.js View on Github external
api.muteAll = function () {
            Howler.mute(true);
        };