Hiyve Components - v1.0.0
    Preparing search index...
    • Encode planar float samples as a RIFF/WAVE file.

      Channels are interleaved in the order given. If the channels differ in length, the shortest length is used so the file never contains samples from an unfinished chunk.

      Parameters

      • channels: readonly Float32Array<ArrayBufferLike>[]

        One Float32Array per channel, samples in −1…1

      • sampleRate: number

        Samples per second

      • options: EncodeWavOptions = {}

        Bit depth; defaults to 16-bit PCM

      Returns ArrayBuffer

      The complete file contents