API reference
Preparing search index…

SoundFileReader

Abstract

Custom audio decoder interface; I/O positions count samples across all channels.

Source & inheritance
Member directory6

Constructors

Properties

Methods

Constructors

Properties

Info: typeof SoundFileReaderInfo = SoundFileReaderInfo

Decoder format information type.

Source & inheritance

Methods

  • Release resources held by the decoder; does nothing by default.

    Returns

    void | Promise<void>
    Source & inheritance
  • Decode into the supplied buffer and return the actual sample count; return 0n at the end.

    Parameters

    samples
    Int16Array

    Returns

    bigint | Promise<bigint>
    Source & inheritance
  • Seek to the specified zero-based interleaved sample offset.

    Parameters

    sampleOffset
    bigint

    Returns

    void | Promise<void>
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0