acl-js/src-js/track.js
// Returns the duration for this track.
Returns the duration for this track.
Returns the duration for this track .
get duration() {
    if (this._numSamples === 0) {
      return 0.0
    }
    if (this._numSamples === 1) {
      return Number.POSITIVE_INFINITY
    }
    return (this._numSamples - 1) / this._sampleRate
  }
get duration ( ) { if ( this . _numSamples === 0 ) { return 0.0 } if ( this . _numSamples === 1 ) { return Number . POSITIVE_INFINITY } return ( this . _numSamples - 1 ) / this . _sampleRate }
Returns the duration for this track.
Returns the duration for this track .
// No samples means no duration // A single sample means we have an indefinite duration (static pose) // Otherwise we have some duration