node-audio-mixer
Version:
PCM audio mixer with customizable parameters
19 lines (18 loc) • 663 B
TypeScript
import { type AudioUtils } from '../Types/AudioUtils';
import { type InputParams, type MixerParams } from '../Types/ParamTypes';
export declare class InputUtils implements AudioUtils {
private readonly audioInputParams;
private readonly audioMixerParams;
private changedParams;
private readonly emptyData;
private audioData;
constructor(inputParams: InputParams, mixerParams: MixerParams);
setAudioData(audioData: Uint8Array): this;
checkIntType(): this;
checkBitDepth(): this;
checkSampleRate(): this;
checkChannelsCount(): this;
checkEndianness(): this;
checkVolume(): this;
getAudioData(): Uint8Array;
}