Skip to content

Commit 7f2874c

Browse files
committed
Fix types
1 parent 385c005 commit 7f2874c

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

types/phaser.d.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57954,6 +57954,10 @@ declare namespace Phaser {
5795457954
* Time, in seconds, that should elapse before the sound actually starts its playback.
5795557955
*/
5795657956
delay?: number;
57957+
/**
57958+
* A value between -1 (full left pan) and 1 (full right pan). 0 means no pan.
57959+
*/
57960+
pan?: number;
5795757961
};
5795857962

5795957963
/**
@@ -75789,6 +75793,22 @@ declare namespace Phaser {
7578975793
*/
7579075794
const MUTE: any;
7579175795

75796+
/**
75797+
* The Sound Pan Event.
75798+
*
75799+
* This event is dispatched by both Web Audio and HTML5 Audio Sound objects when their pan changes.
75800+
*
75801+
* Listen to it from a Sound instance using `Sound.on('pan', listener)`, i.e.:
75802+
*
75803+
* ```javascript
75804+
* var sound = this.sound.add('key');
75805+
* sound.on('pan', listener);
75806+
* sound.play();
75807+
* sound.setPan(0.5);
75808+
* ```
75809+
*/
75810+
const PAN: any;
75811+
7579275812
/**
7579375813
* The Pause All Sounds Event.
7579475814
*
@@ -76078,6 +76098,18 @@ declare namespace Phaser {
7607876098
*/
7607976099
setLoop(value: boolean): Phaser.Sound.HTML5AudioSound;
7608076100

76101+
/**
76102+
* Gets or sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).
76103+
* Has no effect on HTML5 Audio Sound.
76104+
*/
76105+
pan: number;
76106+
76107+
/**
76108+
* Sets the pan of this Sound. Has no effect on HTML5 Audio Sound.
76109+
* @param value The pan of the sound.
76110+
*/
76111+
setPan(value: number): Phaser.Sound.HTML5AudioSound;
76112+
7608176113
}
7608276114

7608376115
/**
@@ -76400,6 +76432,16 @@ declare namespace Phaser {
7640076432
*/
7640176433
setLoop(value: boolean): Phaser.Sound.WebAudioSound;
7640276434

76435+
/**
76436+
* Gets or sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).
76437+
*/
76438+
pan: number;
76439+
76440+
/**
76441+
* Sets the pan of this Sound.
76442+
* @param value The pan of the sound.
76443+
*/
76444+
setPan(value: number): Phaser.Sound.WebAudioSound;
7640376445
}
7640476446

7640576447
/**

0 commit comments

Comments
 (0)