mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
accepts an options template
This commit is contained in:
parent
e87d723ec8
commit
4e54763db1
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ export interface SourceOptions extends ToneAudioNodeOptions {
|
|||
* state.start("+0.3").stop("+0.2");
|
||||
*
|
||||
*/
|
||||
export abstract class Source extends ToneAudioNode {
|
||||
export abstract class Source<Options extends SourceOptions> extends ToneAudioNode<Options> {
|
||||
|
||||
/**
|
||||
* The output volume node
|
||||
|
@ -68,7 +68,7 @@ export abstract class Source extends ToneAudioNode {
|
|||
* @type {Tone.StateTimeline}
|
||||
* @private
|
||||
*/
|
||||
private _state: StateTimeline = new StateTimeline("stopped");
|
||||
protected _state: StateTimeline = new StateTimeline("stopped");
|
||||
|
||||
/**
|
||||
* The synced `start` callback function from the transport
|
||||
|
|
Loading…
Reference in a new issue