mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
doc'ing
This commit is contained in:
parent
4e156e949d
commit
99dc1412a8
1 changed files with 4 additions and 2 deletions
|
@ -28,13 +28,15 @@ export abstract class ToneWithContext<Options extends ToneWithContextOptions> ex
|
|||
readonly context: Context;
|
||||
|
||||
/**
|
||||
* The default context to use if no AudioContext is passed in to the constructor
|
||||
* The default context to use if no AudioContext is passed in to the constructor.
|
||||
* Probably should not be set manually. Used internally.
|
||||
* @hidden
|
||||
*/
|
||||
readonly defaultContext?: Context;
|
||||
|
||||
constructor(context?: Context | Partial<ToneWithContextOptions>) {
|
||||
const options = optionsFromArguments(ToneWithContext.getDefaults(), arguments, ["context"]);
|
||||
super();
|
||||
const options = optionsFromArguments(ToneWithContext.getDefaults(), arguments, ["context"]);
|
||||
if (this.defaultContext) {
|
||||
this.context = this.defaultContext;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue