Constructor
new Encoder(conf)
Parameters:
Name | Type | Description |
---|---|---|
conf |
Configuration | Configuration object. |
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. |
Throws:
-
If dst.byteLength does not match buffer length to store src.
- Type
- InvalidBufferLengthError
Returns:
- Type
- ArrayBuffer