function() {
      var self = this;

      self._drain();

      // Find the first inactive node to recycle.
      for (var i=0; i<self._sounds.length; i++) {
        if (self._sounds[i]._ended) {
          return self._sounds[i].reset();
        }
      }

      // If no inactive node was found, create a new one.
      return new Sound(self);
    }
function() {
      var self = this;

      self._drain();

      // Find the first inactive node to recycle.
      for (var i=0; i<self._sounds.length; i++) {
        if (self._sounds[i]._ended) {
          return self._sounds[i].reset();
        }
      }

      // If no inactive node was found, create a new one.
      return new Sound(self);
    }
function ( ) { var self = this ; self . _drain ( ) ; // Find the first inactive node to recycle. for ( var i = 0 ; i < self . _sounds . length ; i ++ ) { if ( self . _sounds [ i ] . _ended ) { return self . _sounds [ i ] . reset ( ) ; } } // If no inactive node was found, create a new one. return new Sound ( self ) ; }
Return an inactive sound from the pool or create a new one.
@return {Sound} Sound playback object.
Return an inactive sound from the pool or create a new one .
Returns the last node to recycle.