How to use the howler.Howler._muted 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 melonjs / melonJS / src / audio / audio.js View on Github external
api.muted = function () {
            return Howler._muted;
        };
github avgjs / avg-core / src / plugins / audio / manager.js View on Github external
export function getSaveData() {
  const globalMuted = Howler._muted;
  const globalVolume = Howler._volume;

  const channels = Object.keys(Pool);
  const channelData = [];

  for (const channel of channels) {
    const sound = Pool[channel];
    const channelVolume = ChannelVolume[channel] || 1.0;

    let pos = sound.seek();

    if (typeof pos !== 'number') {
      pos = 0;
    }

    channelData.push({