dist/howler.js
function() {
      var self = this || Howler;

      // Return the next object from the pool if one exists.
      if (self._html5AudioPool.length) {
        return self._html5AudioPool.pop();
      }

      //.Check if the audio is locked and throw a warning.
      var testPlay = new Audio().play();
      if (testPlay && typeof Promise !== 'undefined' && (testPlay instanceof Promise || typeof testPlay.then === 'function')) {
        testPlay.catch(function() {
          console.warn('HTML5 Audio pool exhausted, returning potentially locked audio object.');
        });
      }

      return new Audio();
    }
function() {
      var self = this || Howler;

      // Return the next object from the pool if one exists.
      if (self._html5AudioPool.length) {
        return self._html5AudioPool.pop();
      }

      //.Check if the audio is locked and throw a warning.
      var testPlay = new Audio().play();
      if (testPlay && typeof Promise !== 'undefined' && (testPlay instanceof Promise || typeof testPlay.then === 'function')) {
        testPlay.catch(function() {
          console.warn('HTML5 Audio pool exhausted, returning potentially locked audio object.');
        });
      }

      return new Audio();
    }
function ( ) { var self = this || Howler ; // Return the next object from the pool if one exists. if ( self . _html5AudioPool . length ) { return self . _html5AudioPool . pop ( ) ; } //.Check if the audio is locked and throw a warning. var testPlay = new Audio ( ) . play ( ) ; if ( testPlay && typeof Promise !== 'undefined' && ( testPlay instanceof Promise || typeof testPlay . then === 'function' ) ) { testPlay . catch ( function ( ) { console . warn ( 'HTML5 Audio pool exhausted, returning potentially locked audio object.' ) ; } ) ; } return new Audio ( ) ; }
Get an unlocked HTML5 Audio object from the pool. If none are left,
return a new Audio object and throw a warning.
@return {Audio} HTML5 Audio object.
Get an unlocked HTML5 Audio object from the pool . If none are left return a new Audio object and throw a warning .