import AbstractFifoSamplePipe from './AbstractFifoSamplePipe.js'; /** * Sample rate transposer for pitch and tempo manipulation. * Used internally by SoundTouch for rate-based processing. */ export default class RateTransposer extends AbstractFifoSamplePipe { /** * Current rate factor for transposition. */ private _rate; /** * Internal slope accumulator for interpolation. */ private slopeCount; /** * Previous left channel sample for interpolation. */ private prevSampleL; /** * Previous right channel sample for interpolation. */ private prevSampleR; /** * Creates a RateTransposer instance. * @param createBuffers Whether to allocate internal buffers. */ constructor(createBuffers?: boolean); /** * Sets the rate factor for transposition. * @param rate Rate factor. */ set rate(rate: number); /** * Resets internal state for interpolation. */ private reset; /** * Clears buffers and resets internal state. */ clear(): void; /** * Creates a clone of this RateTransposer with the same rate. * @returns Cloned RateTransposer instance. */ clone(): RateTransposer; /** * Processes input buffer and writes transposed samples to output buffer. */ process(): void; /** * Transposes input samples by the current rate. * @param numFrames Number of input frames to transpose. * @returns Number of output frames written. */ transpose(numFrames?: number): number; } //# sourceMappingURL=RateTransposer.d.ts.map