mirror of
https://github.com/photonstorm/phaser
synced 2024-12-01 00:49:41 +00:00
added startTime field to WebAudioSound class
This commit is contained in:
parent
7a4939d435
commit
0d1fb8a15e
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,13 @@ var WebAudioSound = new Class({
|
|||
* @property {GainNode} volumeNode
|
||||
*/
|
||||
this.volumeNode = manager.context.createGain();
|
||||
/**
|
||||
* The time the previous playback started at based on
|
||||
* BaseAudioContext.currentTime value.
|
||||
*
|
||||
* @property {number} startTime
|
||||
*/
|
||||
this.startTime = 0;
|
||||
this.muteNode.connect(this.volumeNode);
|
||||
this.volumeNode.connect(manager.destination);
|
||||
if (config === void 0) {
|
||||
|
|
Loading…
Reference in a new issue