import { Param } from "../context/Param"; import { GainFactor, Unit, UnitName } from "../type/Units"; import { ToneAudioNode, ToneAudioNodeOptions } from "./ToneAudioNode"; interface GainOptions extends ToneAudioNodeOptions { gain: number; units: UnitName; convert: boolean; } /** * A thin wrapper around the Native Web Audio GainNode. * The GainNode is a basic building block of the Web Audio * API and is useful for routing audio and adjusting gains. * @category Core */ export declare class Gain extends ToneAudioNode { readonly name: string; /** * The gain parameter of the gain node. */ readonly gain: Param; /** * The wrapped GainNode. */ private _gainNode; readonly input: GainNode; readonly output: GainNode; /** * @param gain The initial gain of the GainNode * @param units The units of the gain parameter. */ constructor(gain?: GainFactor, units?: Unit); constructor(options?: Partial); static getDefaults(): GainOptions; /** * Clean up. */ dispose(): this; } export {};