Fix types

This commit is contained in:
Pavel Kabakin 2020-09-03 01:25:04 +03:00
parent 385c005c42
commit 7f2874c73e

42
types/phaser.d.ts vendored
View file

@ -57954,6 +57954,10 @@ declare namespace Phaser {
* Time, in seconds, that should elapse before the sound actually starts its playback.
*/
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;
/**
* 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.
*
@ -76078,6 +76098,18 @@ declare namespace Phaser {
*/
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;
/**
* 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;
}
/**