API

Function getByteFrequencyData

  • Writes the current frequency-domain data as unsigned bytes into out, building the analyzer tap on first use. out should be sized to the analyzer's frequencyBinCount (fftSize / 2).

    Parameters

    • host: AudioGraphHost

      A StaticSound, StreamingSound, or AudioBus.

    • out: Uint8Array

      Destination buffer; values are written in place.

    Returns void