mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Fix types
This commit is contained in:
parent
385c005c42
commit
7f2874c73e
1 changed files with 42 additions and 0 deletions
42
types/phaser.d.ts
vendored
42
types/phaser.d.ts
vendored
|
@ -57954,6 +57954,10 @@ declare namespace Phaser {
|
||||||
* Time, in seconds, that should elapse before the sound actually starts its playback.
|
* Time, in seconds, that should elapse before the sound actually starts its playback.
|
||||||
*/
|
*/
|
||||||
delay?: number;
|
delay?: number;
|
||||||
|
/**
|
||||||
|
* A value between -1 (full left pan) and 1 (full right pan). 0 means no pan.
|
||||||
|
*/
|
||||||
|
pan?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75789,6 +75793,22 @@ declare namespace Phaser {
|
||||||
*/
|
*/
|
||||||
const MUTE: any;
|
const MUTE: any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Sound Pan Event.
|
||||||
|
*
|
||||||
|
* This event is dispatched by both Web Audio and HTML5 Audio Sound objects when their pan changes.
|
||||||
|
*
|
||||||
|
* Listen to it from a Sound instance using `Sound.on('pan', listener)`, i.e.:
|
||||||
|
*
|
||||||
|
* ```javascript
|
||||||
|
* var sound = this.sound.add('key');
|
||||||
|
* sound.on('pan', listener);
|
||||||
|
* sound.play();
|
||||||
|
* sound.setPan(0.5);
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
const PAN: any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Pause All Sounds Event.
|
* The Pause All Sounds Event.
|
||||||
*
|
*
|
||||||
|
@ -76078,6 +76098,18 @@ declare namespace Phaser {
|
||||||
*/
|
*/
|
||||||
setLoop(value: boolean): Phaser.Sound.HTML5AudioSound;
|
setLoop(value: boolean): Phaser.Sound.HTML5AudioSound;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).
|
||||||
|
* Has no effect on HTML5 Audio Sound.
|
||||||
|
*/
|
||||||
|
pan: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the pan of this Sound. Has no effect on HTML5 Audio Sound.
|
||||||
|
* @param value The pan of the sound.
|
||||||
|
*/
|
||||||
|
setPan(value: number): Phaser.Sound.HTML5AudioSound;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -76400,6 +76432,16 @@ declare namespace Phaser {
|
||||||
*/
|
*/
|
||||||
setLoop(value: boolean): Phaser.Sound.WebAudioSound;
|
setLoop(value: boolean): Phaser.Sound.WebAudioSound;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).
|
||||||
|
*/
|
||||||
|
pan: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the pan of this Sound.
|
||||||
|
* @param value The pan of the sound.
|
||||||
|
*/
|
||||||
|
setPan(value: number): Phaser.Sound.WebAudioSound;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue