API reference
Preparing search index…

SoundFileWriter

Abstract

Custom audio encoder interface accepting interleaved 16-bit PCM.

Source & inheritance
Member directory4

Constructors

Methods

Constructors

Methods

  • Flush and release output resources. Called by OutputSoundFile.close().

    Returns

    void | Promise<void>
    Source & inheritance
  • Create an output file; sampleRate is in Hz and channelMap contains interleaved channel positions. Return whether it succeeded.

    Parameters

    filename
    string
    sampleRate
    number
    channelCount
    number
    channelMap
    Iterable<SoundChannel>

    Returns

    boolean | Promise<boolean>
    Source & inheritance
  • Encode and write samples; preserve the input until asynchronous completion.

    Parameters

    samples
    Int16Array

    Returns

    void | Promise<void>
    Source & inheritance

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