mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
- fix preloadjs AbstractLoader's getItem() method definitions
- add missing static context property to soundjs WebAudioPlugin - use the web audio api definitions in soundjs (AudioContext, AudioNode, etc)
This commit is contained in:
Vendored
+1
-1
@@ -41,7 +41,7 @@ declare module createjs {
|
||||
// methods
|
||||
cancel(): void;
|
||||
destroy(): void;
|
||||
getItem(): Object;
|
||||
getItem(value?: string): Object;
|
||||
getLoadedItems(): Object[];
|
||||
getResult(raw?: boolean): Object;
|
||||
getTag(): Object;
|
||||
|
||||
Vendored
+11
-9
@@ -13,6 +13,7 @@
|
||||
// Library documentation : http://www.createjs.com/Docs/SoundJS/modules/SoundJS.html
|
||||
|
||||
/// <reference path="../createjs-lib/createjs-lib.d.ts" />
|
||||
/// <reference path="../webaudioapi/waa.d.ts" />
|
||||
|
||||
declare module createjs {
|
||||
|
||||
@@ -222,7 +223,7 @@ declare module createjs {
|
||||
|
||||
export class WebAudioLoader
|
||||
{
|
||||
static context: Object; // AudioContext;
|
||||
static context: AudioContext;
|
||||
}
|
||||
|
||||
export class WebAudioPlugin extends AbstractPlugin
|
||||
@@ -230,9 +231,10 @@ declare module createjs {
|
||||
constructor();
|
||||
|
||||
// properties
|
||||
context: any;
|
||||
dynamicsCompressorNode: any;
|
||||
gainNode: any;
|
||||
static context: AudioContext;
|
||||
context: AudioContext;
|
||||
dynamicsCompressorNode: DynamicsCompressorNode;
|
||||
gainNode: GainNode;
|
||||
|
||||
// methods
|
||||
static isSupported(): boolean;
|
||||
@@ -244,10 +246,10 @@ declare module createjs {
|
||||
constructor(src: string, startTime: number, duration: number, playbackResource: Object);
|
||||
|
||||
// properties
|
||||
static context: Object; // AudioContext;
|
||||
static destinationNode: Object; // AudioNode;
|
||||
gainNode: Object; // AudioGainNode;
|
||||
panNode: Object; // AudioPannerNode;
|
||||
sourceNode: Object; // AudioNode;
|
||||
static context: AudioContext;
|
||||
static destinationNode: AudioNode;
|
||||
gainNode: GainNode;
|
||||
panNode: PannerNode;
|
||||
sourceNode: AudioNode;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user