mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Changed SoundManager and Sound classes to respect volume on first play
This commit is contained in:
parent
9f23c378a1
commit
1c4368fcde
2 changed files with 1 additions and 2 deletions
|
@ -111,7 +111,7 @@ module Phaser {
|
|||
var tempSound: Sound = new Sound(this._context, this._gainNode, null, volume, loop);
|
||||
|
||||
// this is an async process, so we can return the Sound object anyway, it just won't be playing yet
|
||||
this.decode(key, () => this.play(key), tempSound);
|
||||
this.decode(key, () => tempSound.play(), tempSound);
|
||||
|
||||
return tempSound;
|
||||
}
|
||||
|
|
|
@ -54,7 +54,6 @@ module Phaser {
|
|||
|
||||
this._buffer = data;
|
||||
this.isDecoding = false;
|
||||
this.play();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue