lib/waa/dsp.js
function(time) {
          if (this._queue.length === 0) return
          var i = 0, line, oldLines
          while ((line = this._queue[i++]) && time >= line.t2) 1
          oldLines = this._queue.slice(0, i - 1)
          this._queue = this._queue.slice(i - 1)
          if (this._queue.length === 0)
            this._lastValue = oldLines[oldLines.length - 1].v2
        }
function(time) {
          if (this._queue.length === 0) return
          var i = 0, line, oldLines
          while ((line = this._queue[i++]) && time >= line.t2) 1
          oldLines = this._queue.slice(0, i - 1)
          this._queue = this._queue.slice(i - 1)
          if (this._queue.length === 0)
            this._lastValue = oldLines[oldLines.length - 1].v2
        }
function ( time ) { if ( this . _queue . length === 0 ) return var i = 0 , line , oldLines while ( ( line = this . _queue [ i ++ ] ) && time >= line . t2 ) 1 oldLines = this . _queue . slice ( 0 , i - 1 ) this . _queue = this . _queue . slice ( i - 1 ) if ( this . _queue . length === 0 ) this . _lastValue = oldLines [ oldLines . length - 1 ] . v2 }
Refresh the queue to `time`, removing old lines and setting `_lastValue` if appropriate.
Refresh the queue to time removing old lines and setting _lastValue if appropriate .