classWORKERCLONEABLETRANSFERABLE
FbAudioChunk
js/foo_uie_jsplitter.js:5257
Object returned by fb.GetAudioChunk
Object returned by fb.GetAudioChunk
ChannelConfig: number = 0
ChannelCount: number = 0
Data: Array<float> = 0
SampleCount: number = 0
SampleRate: number = 0
CopyDataTo(destination)
Copies the chunk's interleaved PCM samples into an existing Float32Array without allocating a new JavaScript sample array. The destination must have room for at least SampleCount * ChannelCount values. This is useful for real-time visualizations that reuse the same buffer on every update; the legacy Data property remains unchanged for compatibility.
| Name | Type | Description |
|---|---|---|
destination | Float32Array | Destination buffer. |
number — Number of scalar PCM samples copied.
Error — If destination is not a Float32Array or is too small.