Class: Encoder

Encoder(conf)

Serialize AudioBuffer to ArrayBuffer.

Constructor

new Encoder(conf)

Parameters:
Name Type Description
conf Configuration Configuration object.
Source:

Methods

execute(src, dstopt) → {ArrayBuffer}

Serialize AudioBuffer to ArrayBuffer.
Parameters:
Name Type Attributes Description
src AudioBuffer
dst ArrayBuffer <optional>
If not specified, generate ArrayBuffer object in this method.
Source:
Throws:
If dst.byteLength does not match buffer length to store src.
Type
InvalidBufferLengthError
Returns:
Type
ArrayBuffer