xsound 3.0.16 → 3.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,9 @@ export declare class MIDI {
9
9
  constructor();
10
10
  /**
11
11
  * This method invokes `requestMIDIAccess` and gets instance of `MIDIAccess`.
12
- * @param {MIDIOptions} options This argument is object based on `MIDIOptions` dictionary.
13
- * @param {function} successCallback This argument is invoked on `requestMIDIAccess` success.
14
- * @param {function} errorCallback This argument is invoked on `requestMIDIAccess` failure.
12
+ * @property {MIDIOptions} options This argument is object based on `MIDIOptions` dictionary.
13
+ * @property {function} successCallback This argument is invoked on `requestMIDIAccess` success.
14
+ * @property {function} errorCallback This argument is invoked on `requestMIDIAccess` failure.
15
15
  * @return {Promise<MIDIAccess|void>} Return value is `Promise` that `requestMIDIAccess` method returns.
16
16
  */
17
17
  setup(params: {
@@ -13,7 +13,7 @@ export declare class Part {
13
13
  private mml;
14
14
  private syntaxTree;
15
15
  private previous;
16
- private timerId;
16
+ private scheduleWorker;
17
17
  private currentIndex;
18
18
  private currentPosition;
19
19
  private offset;
@@ -22,13 +22,13 @@ export declare class Part {
22
22
  private endedCallback;
23
23
  private errorCallback;
24
24
  /**
25
- * @param {OscillatorModule|OneshotModule|NoiseModule} source This argument selects sound source.
26
- * @param {string} mml This argument is MML string.
27
- * @param {number} offset This argument corrects index of one-shot audio.
28
- * @param {function} startCallback This argument is invoked on start musical note.
29
- * @param {function} stopCallback This argument is invoked on stop musical note.
30
- * @param {function} endedCallback This argument is invoked on ended.
31
- * @param {function} errorCallback This argument is invoked on syntax error.
25
+ * @property {OscillatorModule|OneshotModule|NoiseModule} source This argument selects sound source.
26
+ * @property {string} mml This argument is MML string.
27
+ * @property {number} offset This argument corrects index of one-shot audio.
28
+ * @property {function} startCallback This argument is invoked on start musical note.
29
+ * @property {function} stopCallback This argument is invoked on stop musical note.
30
+ * @property {function} endedCallback This argument is invoked on ended.
31
+ * @property {function} errorCallback This argument is invoked on syntax error.
32
32
  */
33
33
  constructor(params: {
34
34
  source: OscillatorModule | OneshotModule | NoiseModule;
@@ -1 +1 @@
1
- {"version":3,"file":"Part.d.ts","sourceRoot":"","sources":["../../../src/MML/Part.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAIxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,qBAAa,IAAI;IACf,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,MAAM,CAA6C;IAC3D,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAAyB;IACzC,OAAO,CAAC,OAAO,CAAuB;IACtC,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,eAAe,CAAK;IAC5B,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,aAAa;IAErB;;;;;;;;OAQG;gBACS,MAAM,EAAE;QAClB,MAAM,EAAE,gBAAgB,GAAG,aAAa,GAAG,WAAW,CAAC;QACvD,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,aAAa,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1D,YAAY,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACzD,aAAa,CAAC,IAAI,IAAI,CAAC;QACvB,aAAa,CAAC,CA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QAClB,MAAM,EAAE,gBAAgB,GAAG,aAAa,GAAG,WAAW,CAAC;QACvD,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,aAAa,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1D,YAAY,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACzD,aAAa,CAAC,IAAI,IAAI,CAAC;QACvB,aAAa,CAAC,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;KAC7C;IAiDD;;;OAGG;IACI,KAAK,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IA8FtC;;OAEG;IACI,IAAI,IAAI,IAAI;IAwCnB;;OAEG;IACI,MAAM,IAAI,MAAM;IAIvB;;OAEG;IACI,YAAY,IAAI,QAAQ,EAAE;IAIjC;;OAEG;IACI,aAAa,IAAI,MAAM;IAI9B;;;OAGG;IACI,GAAG,IAAI,OAAO;IAIrB;;;OAGG;IACI,MAAM,IAAI,OAAO;IAIxB;;OAEG;IACI,eAAe,IAAI,MAAM;IAIhC;;;OAGG;IACI,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAK5C"}
@@ -0,0 +1,2 @@
1
+ export declare const schedule: () => void;
2
+ //# sourceMappingURL=ScheduleWorker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduleWorker.d.ts","sourceRoot":"","sources":["../../../src/MML/ScheduleWorker.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,YA6BpB,CAAC"}
@@ -11,13 +11,13 @@ export declare class Sequence {
11
11
  private _stop;
12
12
  private _duration;
13
13
  /**
14
- * @param {string} id This argument is string that identifies sequence.
15
- * @param {string} note This argument is string that corresponds to MML token.
16
- * @param {Array<number>} indexes This argument is array that contains index that corresponds to 12 equal temperament.
17
- * @param {Array<number>} frequencies This argument is array that contains frequency.
18
- * @param {number} start This argument is start time.
19
- * @param {number} stop This argument is stop time.
20
- * @param {number} duration This argument is duration.
14
+ * @property {string} id This argument is string that identifies sequence.
15
+ * @property {string} note This argument is string that corresponds to MML token.
16
+ * @property {Array<number>} indexes This argument is array that contains index that corresponds to 12 equal temperament.
17
+ * @property {Array<number>} frequencies This argument is array that contains frequency.
18
+ * @property {number} start This argument is start time.
19
+ * @property {number} stop This argument is stop time.
20
+ * @property {number} duration This argument is duration.
21
21
  */
22
22
  constructor(params: {
23
23
  id: string;
@@ -18,10 +18,10 @@ export declare class MML {
18
18
  private errorCallback;
19
19
  constructor();
20
20
  /**
21
- * @param {function} startCallback This argument is invoked on starting MML.
22
- * @param {function} stopCallback This argument is invoked on stopping MML.
23
- * @param {function} endedCallback This argument is invoked on ending MML.
24
- * @param {function} errorCallback This argument is invoked on occurring MML syntax error.
21
+ * @property {function} startCallback This argument is invoked on starting MML.
22
+ * @property {function} stopCallback This argument is invoked on stopping MML.
23
+ * @property {function} endedCallback This argument is invoked on ending MML.
24
+ * @property {function} errorCallback This argument is invoked on occurring MML syntax error.
25
25
  */
26
26
  setup(callbacks?: {
27
27
  startCallback?(sequence: Sequence, offset?: number): void;
@@ -31,9 +31,9 @@ export declare class MML {
31
31
  }): MML;
32
32
  /**
33
33
  * This method parses MML string.
34
- * @param {OscillatorModule|OneshotModule|NoiseModule} source This argument selects sound source.
35
- * @param {Array<string>} mmls This argument is MML strings.
36
- * @param {number} offset This argument is in order to adjust index of one-shot audio.
34
+ * @property {OscillatorModule|OneshotModule|NoiseModule} source This argument selects sound source.
35
+ * @property {Array<string>} mmls This argument is MML strings.
36
+ * @property {number} offset This argument is in order to adjust index of one-shot audio.
37
37
  * @return {MML} Return value is for method chain.
38
38
  */
39
39
  ready(params: {
@@ -61,10 +61,10 @@ export declare class MediaModule extends SoundModule {
61
61
  constructor(context: AudioContext, bufferSize: BufferSize);
62
62
  /**
63
63
  * This method gets `HTMLMediaElement` and selects media format. In addition, this method adds event listeners that are defined by `HTMLMediaElement`.
64
- * @param {HTMLAudioElement|HTMLVideoElement} media This argument is either `HTMLAudioElement` or `HTMLVideoElement`.
65
- * @param {Array<string>} formats This argument is usable media format. For example, 'wav', 'ogg', 'webm', 'mp4' ...etc.
66
- * @param {boolean} autoplay This argument is in order to determine autoplay. The default value is `false`.
67
- * @param {{ [eventType: string]: (event: Event | Error) => void }} listeners This argument is event listeners that are defined by `HTMLMediaElement`.
64
+ * @property {HTMLAudioElement|HTMLVideoElement} media This argument is either `HTMLAudioElement` or `HTMLVideoElement`.
65
+ * @property {Array<string>} formats This argument is usable media format. For example, 'wav', 'ogg', 'webm', 'mp4' ...etc.
66
+ * @property {boolean} autoplay This argument is in order to determine autoplay. The default value is `false`.
67
+ * @property {{ [eventType: string]: (event: Event | Error) => void }} listeners This argument is event listeners that are defined by `HTMLMediaElement`.
68
68
  * @return {MediaModule} Return value is for method chain.
69
69
  */
70
70
  setup(params: {
@@ -77,7 +77,7 @@ export declare class MediaModule extends SoundModule {
77
77
  }): MediaModule;
78
78
  /**
79
79
  * This method prepares for playing media anytime after loading media resource.
80
- * @param {string} source This argument is Object URL or file name for media resource.
80
+ * @param {string} src This argument is Object URL or file name for media resource.
81
81
  * @param {string} mimeType This argument is required in case of audio streaming.
82
82
  * @return {MediaModule} Return value is for method chain.
83
83
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/MediaModule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAO,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAsB,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EA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,EAAE,MAAM,GAAG,WAAW;IAKnD,gBAAgB;IACA,OAAO,IAAI,WAAW;IAKtC,gBAAgB;IACA,GAAG,IAAI,WAAW;IAKlC,gBAAgB;IACA,KAAK,IAAI,WAAW;IAKpC;;;;OAIG;IACa,MAAM,IAAI,QAAQ,CAAC,iBAAiB,CAAC;IAgBrD,gBAAgB;IAChB,IAAoB,KAAK,IAAI,mBAAmB,CAE/C;IAED,gBAAgB;IAChB,IAAoB,MAAM,IAAI,QAAQ,CAErC;IAED;;;OAGG;IACH,OAAO,CAAC,YAAY;IAmCpB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAMrB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAMrB;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAM/B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;CAK5B"}
@@ -64,13 +64,13 @@ export declare class OneshotModule extends SoundModule {
64
64
  constructor(context: AudioContext, bufferSize: BufferSize);
65
65
  /**
66
66
  * This method creates instances of `AudioBuffer` by Ajax.
67
- * @param {Array<string>|Array<AudioBuffer>} resources This argument is array that contains URL or instance of `AudioBuffer` for audio resources.
68
- * @param {OneshotSettings} settings This argument is settings (such as `playbackRate`, `loop` ... etc) each audio sources.
69
- * @param {number} timeout This argument is timeout of Ajax. The default value is 60000 msec (1 minutes).
70
- * @param {function} successCallback This argument is invoked on success;
71
- * @param {function} errorCallback This argument is invoked on failure.
72
- * @param {function} progressCallback This argument is invoked during receiving audio data.
73
- * @return {OneshotModule} Return value is for method chain.
67
+ * @property {Array<string>|Array<AudioBuffer>} resources This argument is array that contains URL or instance of `AudioBuffer` for audio resources.
68
+ * @property {OneshotSettings} settings This argument is settings (such as `playbackRate`, `loop` ... etc) each audio sources.
69
+ * @property {number} timeout This argument is timeout of Ajax. The default value is 60000 msec (1 minutes).
70
+ * @property {function} successCallback This argument is invoked on success;
71
+ * @property {function} errorCallback This argument is invoked on failure.
72
+ * @property {function} progressCallback This argument is invoked during receiving audio data.
73
+ * @property {OneshotModule} Return value is for method chain.
74
74
  */
75
75
  setup(params: {
76
76
  resources: string[] | AudioBuffer[];
@@ -95,7 +95,7 @@ export declare class OneshotModule extends SoundModule {
95
95
  start(indexes: number[]): OneshotModule;
96
96
  /**
97
97
  * This method stops one-shot audio.
98
- * @param {Array<number>} index This argument selects instance of `AudioBufferSourceNode`.
98
+ * @param {Array<number>} indexes This argument selects instance of `AudioBufferSourceNode`.
99
99
  * @return {OneshotModule} Return value is for method chain.
100
100
  */
101
101
  stop(indexes: number[]): OneshotModule;
@@ -181,12 +181,12 @@ export declare class OneshotModule extends SoundModule {
181
181
  get OUTPUT(): GainNode;
182
182
  /**
183
183
  * This method gets `ArrayBuffer` and creates instance of `AudioBuffer`.
184
- * @param {string} url This argument is resource URL for one-shot audio.
185
- * @param {number} index This argument is in order to assign instance of `AudioBuffer`.
186
- * @param {number} timeout This argument is timeout of Ajax. The default value is 60000 msec (1 minutes).
187
- * @param {function} successCallback This argument is invoked on success;
188
- * @param {function} errorCallback This argument is invoked on failure.
189
- * @param {function} progressCallback This argument is invoked during receiving audio data.
184
+ * @property {string} url This argument is resource URL for one-shot audio.
185
+ * @property {number} index This argument is in order to assign instance of `AudioBuffer`.
186
+ * @property {number} timeout This argument is timeout of Ajax. The default value is 60000 msec (1 minutes).
187
+ * @property {function} successCallback This argument is invoked on success;
188
+ * @property {function} errorCallback This argument is invoked on failure.
189
+ * @property {function} progressCallback This argument is invoked during receiving audio data.
190
190
  */
191
191
  private load;
192
192
  }
@@ -39,7 +39,7 @@ export declare class ProcessorModule extends SoundModule {
39
39
  constructor(context: AudioContext, bufferSize: BufferSize);
40
40
  /**
41
41
  * This method sets registered processor name and options for `AudioWorkletNode` constructor.
42
- * @param {string} name This argument is name of `AudioWorkletProcessor`.
42
+ * @param {string} processorName This argument is name of `AudioWorkletProcessor`.
43
43
  * @param {AudioWorkletNodeOptions} options This argument is object based on `AudioWorkletNodeOptions` dictionary.
44
44
  * @return {ProcessorModule} Return value is for method chain.
45
45
  */
@@ -71,13 +71,13 @@ export declare class ProcessorModule extends SoundModule {
71
71
  postMessage(data: unknown): ProcessorModule;
72
72
  /**
73
73
  * This method sets event handler that is invoked on receiving message.
74
- * @param {function} This argument is invoked on receiving message.
74
+ * @param {function} callback This argument is invoked on receiving message.
75
75
  * @return {ProcessorModule} Return value is for method chain.
76
76
  */
77
77
  onMessage(callback: (event: MessageEvent) => void): ProcessorModule;
78
78
  /**
79
79
  * This method sets event handler that is invoked on receiving message that cannot be deserialized.
80
- * @param {function} This argument is invoked on receiving message that cannot be deserialized.
80
+ * @param {function} callback This argument is invoked on receiving message that cannot be deserialized.
81
81
  * @return {ProcessorModule} Return value is for method chain.
82
82
  */
83
83
  onMessageError(callback: (event: MessageEvent) => void): ProcessorModule;
@@ -48,11 +48,11 @@ export declare class Reverb extends Effector {
48
48
  add(impulse: ArrayBuffer | AudioBuffer, errorCallback?: (error: Error) => void): Reverb;
49
49
  /**
50
50
  * This method creates and appends to Reverb presets instance of `AudioBuffer` by Ajax.
51
- * @param {Array<string>|Array<AudioBuffer>} rirs This argument is array that contains URL or instance of `AudioBuffer` for impulse response.
52
- * @param {number} timeout This argument is timeout of Ajax. The default value is 60000 msec (1 minutes).
53
- * @param {function} successCallback This argument is invoked on success.
54
- * @param {function} errorCallback This argument is invoked on failure.
55
- * @param {function} progressCallback This argument is invoked during receiving audio data.
51
+ * @property {Array<string>|Array<AudioBuffer>} rirs This argument is array that contains URL or instance of `AudioBuffer` for impulse response.
52
+ * @property {number} timeout This argument is timeout of Ajax. The default value is 60000 msec (1 minutes).
53
+ * @property {function} successCallback This argument is invoked on success.
54
+ * @property {function} errorCallback This argument is invoked on failure.
55
+ * @property {function} progressCallback This argument is invoked during receiving audio data.
56
56
  */
57
57
  preset(params: {
58
58
  rirs: string[] | AudioBuffer[];
@@ -69,12 +69,12 @@ export declare class Reverb extends Effector {
69
69
  deactivate(): Reverb;
70
70
  /**
71
71
  * This method retrives `ArrayBuffer` and creates instance of `AudioBuffer`.
72
- * @param {string} url This argument is resource URL for one-shot audio.
73
- * @param {number} index This argument is in order to assign instance of `AudioBuffer`.
74
- * @param {number} timeout This argument is Ajax timeout.
75
- * @param {function} successCallback This argument is invoked on success.
76
- * @param {function} errorCallback This argument is invoked on failure
77
- * @param {function} progressCallback This argument is invoked during receiving audio data.
72
+ * @property {string} url This argument is resource URL for one-shot audio.
73
+ * @property {number} index This argument is in order to assign instance of `AudioBuffer`.
74
+ * @property {number} timeout This argument is Ajax timeout.
75
+ * @property {function} successCallback This argument is invoked on success.
76
+ * @property {function} errorCallback This argument is invoked on failure
77
+ * @property {function} progressCallback This argument is invoked during receiving audio data.
78
78
  */
79
79
  private load;
80
80
  }
@@ -29,7 +29,7 @@ export declare class Recorder implements Connectable {
29
29
  constructor(context: AudioContext, bufferSize: BufferSize, numberOfInputs: RecordType, numberOfOutputs: RecordType);
30
30
  /**
31
31
  * This method sets the max number of tracks.
32
- * @param {RecordType} numberOfTracks This argument is the number of channels (not used currently).
32
+ * @param {RecordType} numberOfChannels This argument is the number of channels (not used currently).
33
33
  * @param {number} numberOfTracks This argument is the max number of tracks.
34
34
  * @return {Recorder} Return value is for method chain.
35
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/SoundModule/Recorder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,oBAAY,UAAU,GAAQ,CAAC,GAAG,CAAC,CAAC;AACpC,oBAAY,eAAe,GAAG,CAAC,GAAG,EAAE,CAAC;AACrC,oBAAY,cAAc,GAAI,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAE1E,YAAY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KAAK,CAAC,gBAAgB,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,GAAG,QAAQ;IAa5E;;;;;OAKG;IACI,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ;IAU3C;;;OAGG;IACI,KAAK,IAAI,QAAQ;IAuCxB;;;OAGG;IACI,IAAI,IAAI,QAAQ;IAWvB;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,GAAG,MAAM;IAChC,KAAK,CAAC,MAAM,EAAE,cAAc,GAAG,QAAQ;IA2C9C;;;OAGG;IACI,GAAG,IAAI,MAAM;IAIpB;;;;OAIG;IACI,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ;IA2B3C;;;;;;;OAOG;IACI,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,GAAG,IAAI;IAkP7H;;;;;OAKG;IACI,GAAG,CAAC,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO;IAoBtE;;;;OAIG;IACI,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO;IAIxD;;;;OAIG;IACI,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO;IAI7C,gBAAgB;IAChB,IAAW,KAAK,IAAI,mBAAmB,CAEtC;IAED,gBAAgB;IAChB,IAAW,MAAM,IAAI,mBAAmB,CAEvC;IAED;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IA4BjB;;;;OAIG;IACH,OAAO,CAAC,QAAQ;CAgEjB"}
@@ -52,13 +52,13 @@ export declare class Session implements Connectable {
52
52
  */
53
53
  constructor(context: AudioContext);
54
54
  /**
55
- * This method creates instance of `Room`
55
+ * This method creates instance of `Room`.
56
56
  * @param {SessionSetupParams} params This argument is in order to create instance of `Room`.
57
57
  * @return {Session} Return value is for method chain.
58
58
  */
59
59
  setup(params: SessionSetupParams): Session;
60
60
  /**
61
- * This method creates instance of `WebSocket`
61
+ * This method creates instance of `WebSocket`.
62
62
  * @param {SessionConnectionParams} params This argument is in order to create instance of `WebSocket`.
63
63
  * @return {Session} Return value is for method chain.
64
64
  */
@@ -58,9 +58,9 @@ export declare class StreamModule extends SoundModule {
58
58
  setup(constraints?: MediaStreamConstraints): StreamModule;
59
59
  /**
60
60
  * This method opens devices or sets instance of `MediaStream`.
61
- * @param {MediaStream} stream This argument is instance of `MediaStream`.
62
- * @param {function} successCallback This argument is invoked on success.
63
- * @param {function} errorCallback This argument is invoked on failure.
61
+ * @property {MediaStream} stream This argument is instance of `MediaStream`.
62
+ * @property {function} successCallback This argument is invoked on success.
63
+ * @property {function} errorCallback This argument is invoked on failure.
64
64
  * @return {Promise<MediaStream|Error>} Return value is `Promise` that `getUserMedia` returns.
65
65
  */
66
66
  ready(params?: {
@@ -53,12 +53,12 @@ export declare function fft(reals: Float32Array, imags: Float32Array, size: numb
53
53
  export declare function ifft(reals: Float32Array, imags: Float32Array, size: number): void;
54
54
  /**
55
55
  * This class (static) method retrieves resource on web by Ajax.
56
- * @param {string} url This argument is URL for resource.
57
- * @param {XMLHttpRequestResponseType} type This argument is response type that is one of 'arraybuffer', 'blob', 'document', 'json', 'text'. The default value is 'arraybuffer'.
58
- * @param {number} timeout This argument is timeout of Ajax. The default value is 60000 msec (1 minutes).
59
- * @param {function} successCallback This argument is invoked on success.
60
- * @param {function} errorCallback This argument is invoked on failure.
61
- * @param {function} progressCallback This argument is invoked during receiving data.
56
+ * @property {string} url This argument is URL for resource.
57
+ * @property {XMLHttpRequestResponseType} type This argument is response type that is one of 'arraybuffer', 'blob', 'document', 'json', 'text'. The default value is 'arraybuffer'.
58
+ * @property {number} timeout This argument is timeout of Ajax. The default value is 60000 msec (1 minutes).
59
+ * @property {function} successCallback This argument is invoked on success.
60
+ * @property {function} errorCallback This argument is invoked on failure.
61
+ * @property {function} progressCallback This argument is invoked during receiving data.
62
62
  */
63
63
  export declare function ajax(params: {
64
64
  url: string;
@@ -95,11 +95,11 @@ export declare function requestFullscreen(element: Element): Promise<void>;
95
95
  export declare function exitFullscreen(): Promise<void>;
96
96
  /**
97
97
  * This class (static) method reads file.
98
- * @param {File} file This argument is instance of `File`.
99
- * @param {FileReaderType} type This argument is one of 'arraybuffer', 'dataURL', 'text', 'json'.
100
- * @param {function} successCallback This argument is invoked on success.
101
- * @param {function} errorCallback This argument is invoked on failure.
102
- * @param {function} progressCallback This argument is invoked as `onprogress` event handler in instance of `FileReader`.
98
+ * @property {File} file This argument is instance of `File`.
99
+ * @property {FileReaderType} type This argument is one of 'arraybuffer', 'dataURL', 'text', 'json'.
100
+ * @property {function} successCallback This argument is invoked on success.
101
+ * @property {function} errorCallback This argument is invoked on failure.
102
+ * @property {function} progressCallback This argument is invoked as `onprogress` event handler in instance of `FileReader`.
103
103
  */
104
104
  export declare function read(params: {
105
105
  file: File;
@@ -110,11 +110,11 @@ export declare function read(params: {
110
110
  }): void;
111
111
  /**
112
112
  * This class (static) method gets instance of `File` from `DataTransfer`.
113
- * @param {DragEvent} event This argument is instance of `DragEvent`.
114
- * @param {FileReaderType|string} type This argument is one of 'arraybuffer', 'dataURL', 'objectURL', 'text', 'json'.
115
- * @param {function} successCallback This argument is invoked on success.
116
- * @param {function} errorCallback This argument is invoked on failure.
117
- * @param {function} progressCallback This argument is invoked as `onprogress` event handler in instance of `FileReader`.
113
+ * @property {DragEvent} event This argument is instance of `DragEvent`.
114
+ * @property {FileReaderType|string} type This argument is one of 'arraybuffer', 'dataURL', 'objectURL', 'text', 'json'.
115
+ * @property {function} successCallback This argument is invoked on success.
116
+ * @property {function} errorCallback This argument is invoked on failure.
117
+ * @property {function} progressCallback This argument is invoked as `onprogress` event handler in instance of `FileReader`.
118
118
  * @return {string|File|null} Return value is Object URL or instance of `File` on success. Otherwise, it is `null`.
119
119
  */
120
120
  export declare function drop(params: {
@@ -126,11 +126,11 @@ export declare function drop(params: {
126
126
  }): string | File | null;
127
127
  /**
128
128
  * This class (static) method gets instance of `File`.
129
- * @param {Event} event This argument is instance of `Event` by `HTMLInputElement`.
130
- * @param {FileReaderType|string} type This argument is one of 'arraybuffer', 'dataURL', 'objectURL', 'text', 'json'.
131
- * @param {function} successCallback This argument is invoked on success.
132
- * @param {function} errorCallback This argument is invoked on failure.
133
- * @param {function} progressCallback This argument is invoked as `onprogress` event handler in instance of `FileReader`.
129
+ * @property {Event} event This argument is instance of `Event` by `HTMLInputElement`.
130
+ * @property {FileReaderType|string} type This argument is one of 'arraybuffer', 'dataURL', 'objectURL', 'text', 'json'.
131
+ * @property {function} successCallback This argument is invoked on success.
132
+ * @property {function} errorCallback This argument is invoked on failure.
133
+ * @property {function} progressCallback This argument is invoked as `onprogress` event handler in instance of `FileReader`.
134
134
  * @return {string|File|null} Return value is Object URL or instance of `File` on success. Otherwise, it is `null`.
135
135
  */
136
136
  export declare function file(params: {
@@ -8,4 +8,9 @@ declare global {
8
8
  }
9
9
  export declare type BufferSize = 0 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384;
10
10
  export declare type ChannelNumber = -1 | 0 | 1;
11
+ export declare type MMLScheduleWorkerEventType = 'schedule' | 'next' | 'stop';
12
+ export declare type MMLScheduleWorkerEventData = {
13
+ type: MMLScheduleWorkerEventType;
14
+ duration?: number;
15
+ };
11
16
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,CAAC,EAAE,OAAO,MAAM,CAAC;QACvB,CAAC,CAAC,EAAE,OAAO,MAAM,CAAC;QAClB,kBAAkB,EAAE,OAAO,YAAY,CAAC;KACzC;CACF;AAGD,oBAAY,UAAU,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAG3E,oBAAY,aAAa,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,CAAC,EAAE,OAAO,MAAM,CAAC;QACvB,CAAC,CAAC,EAAE,OAAO,MAAM,CAAC;QAClB,kBAAkB,EAAE,OAAO,YAAY,CAAC;KACzC;CACF;AAGD,oBAAY,UAAU,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAG3E,oBAAY,aAAa,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEvC,oBAAY,0BAA0B,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtE,oBAAY,0BAA0B,GAAG;IACvC,IAAI,EAAE,0BAA0B,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This function returns worker script as string by removing container string.
3
+ * @param {string} workerContainerString This argument is string that contains worker script.
4
+ * @return {string} Return value is worker script as string.
5
+ */
6
+ export declare function extractWorkerString(workerContainerString: string): string;
7
+ /**
8
+ * This function returns worker script as `Blob` by removing container string.
9
+ * @param {string} workerContainerString This argument is string that contains worker script.
10
+ * @return {Blob} Return value is worker script as `Blob`.
11
+ */
12
+ export declare function createWorkerBlob(workerContainerString: string): Blob;
13
+ /**
14
+ * This function returns worker script as Object URL by removing container string.
15
+ * @param {string} workerContainerString This argument is string that contains worker script.
16
+ * @return {string} Return value is worker script as Object URL.
17
+ */
18
+ export declare function createWorkerObjectURL(workerContainerString: string): string;
19
+ //# sourceMappingURL=worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/worker.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAEpE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAE3E"}