Skip to content

StreamingPcmResampler

Defined in: resampler.ts:17

Deterministic, chunk-boundary-independent linear PCM resampler.

The phase is represented with integer sample counts instead of an accumulated float, so a long render produces the same samples regardless of how providers split their PCM blocks. push(..., true) flushes the exact finite-duration tail and seals the instance.

new StreamingPcmResampler(options): StreamingPcmResampler

Defined in: resampler.ts:27

StreamingPcmResamplerOptions

StreamingPcmResampler

get inputFrames(): number

Defined in: resampler.ts:37

number


get outputFrames(): number

Defined in: resampler.ts:41

number

push(interleaved, final): Float32Array

Defined in: resampler.ts:45

Float32Array

boolean = false

Float32Array