node-audio-mixer
Version:
PCM audio mixer with customizable parameters
19 lines (18 loc) • 739 B
TypeScript
import { type MixerParams, type InputParams, type OmitSomeParams } from '../Types/ParamTypes';
import { Readable } from 'stream';
import { AudioInput } from '../AudioInput/AudioInput';
export declare class AudioMixer extends Readable {
private readonly mixerParams;
private readonly audioUtils;
private delayTimeValue;
private isWork;
private readonly inputs;
constructor(params: MixerParams);
get params(): Readonly<MixerParams>;
set params(params: OmitSomeParams<MixerParams>);
_read(): void;
_destroy(error: Error, callback: (error?: Error) => void): void;
createAudioInput(inputParams: InputParams): AudioInput;
removeAudioinput(audioInput: AudioInput): boolean;
private loopRead;
}