Hiyve Components - v1.0.0
    Preparing search index...

    A ring buffer of the most recent samples, addressed by absolute frame index from the start of the stream, so a spectrum can be read "at frame N" as long as frame N is still within the ring.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    capacity: number

    Accessors

    • get totalFrames(): number

      Frames pushed so far — the index the next pushed sample will have

      Returns number

    Methods

    • Parameters

      • samples: Float32Array

      Returns void

    • Copy frames [startFrame, startFrame + out.length) into out. Frames not yet pushed, or already evicted, read as zero.

      Parameters

      • startFrame: number
      • out: Float32Array

      Returns void

    • Forget everything; the next pushed sample is frame 0 again

      Returns void