import BufferToWav from '@mobilizing/library/js/Mobilizing/renderer/audio/BufferToWav.js'
BufferToWav
Static Method Summary
Static Public Methods | ||
public static | downloadToWavFile(buffer: *, name: *) | |
public static | encodeWAV(samples: *, format: *, sampleRate: *, numChannels: *, bitDepth: *): * | |
public static | floatTo16BitPCM(output: *, offset: *, input: *) | |
public static | interleave(inputL: *, inputR: *): * | |
public static | makeWavFromBuffer(buffer: *, isFloat32: *): * | |
public static | writeFloat32(output: *, offset: *, input: *) | |
public static | writeString(view: *, offset: *, string: *) |
Static Public Methods
public static downloadToWavFile(buffer: *, name: *) source
Params:
Name | Type | Attribute | Description |
buffer | * | ||
name | * |
public static encodeWAV(samples: *, format: *, sampleRate: *, numChannels: *, bitDepth: *): * source
Params:
Name | Type | Attribute | Description |
samples | * | ||
format | * | ||
sampleRate | * | ||
numChannels | * | ||
bitDepth | * |
Return:
* |
public static floatTo16BitPCM(output: *, offset: *, input: *) source
Params:
Name | Type | Attribute | Description |
output | * | ||
offset | * | ||
input | * |
public static interleave(inputL: *, inputR: *): * source
Params:
Name | Type | Attribute | Description |
inputL | * | ||
inputR | * |
Return:
* |
public static makeWavFromBuffer(buffer: *, isFloat32: *): * source
Params:
Name | Type | Attribute | Description |
buffer | * | ||
isFloat32 | * |
Return:
* |
public static writeFloat32(output: *, offset: *, input: *) source
Params:
Name | Type | Attribute | Description |
output | * | ||
offset | * | ||
input | * |
public static writeString(view: *, offset: *, string: *) source
Params:
Name | Type | Attribute | Description |
view | * | ||
offset | * | ||
string | * |