import { Param } from "../core/context/Param"; import { Seconds, Time, Unit, UnitName } from "../core/type/Units"; import { OneShotSource, OneShotSourceOptions } from "../source/OneShotSource"; export interface ToneConstantSourceOptions extends OneShotSourceOptions { convert: boolean; offset: Type; units: UnitName; } /** * Wrapper around the native fire-and-forget ConstantSource. * Adds the ability to reschedule the stop method. * @category Signal */ export declare class ToneConstantSource extends OneShotSource> { readonly name: string; /** * The signal generator */ private _source; /** * The offset of the signal generator */ readonly offset: Param; /** * @param offset The offset value */ constructor(offset: Type); constructor(options?: Partial>); static getDefaults(): ToneConstantSourceOptions; /** * Start the source node at the given time * @param time When to start the source */ start(time?: Time): this; protected _stopSource(time?: Seconds): void; dispose(): this; }