Pure helper — coerces a Uint8Array view (which may be a window onto a larger buffer) or a standalone
ArrayBuffer into a copiedArrayBuffer of exactly the frame's bytes. A view's .buffer can be
larger than the frame, so we slice the exact window; isolated from I/O so it is unit-tested directly.
Defined here (the Vonage package has no other PCM-coercion helper) so there is no duplicate export *
collision under index.ts.
Pure helper — coerces a
Uint8Arrayview (which may be a window onto a larger buffer) or a standaloneArrayBufferinto a copiedArrayBufferof exactly the frame's bytes. A view's.buffercan be larger than the frame, so we slice the exact window; isolated from I/O so it is unit-tested directly.Defined here (the Vonage package has no other PCM-coercion helper) so there is no duplicate
export *collision underindex.ts.