mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Updating all sounds on sound manager update
This commit is contained in:
parent
62ca1bef8a
commit
94e834fa96
1 changed files with 11 additions and 1 deletions
|
@ -84,7 +84,17 @@ var BaseSoundManager = new Class({
|
|||
stopAll: NOOP,
|
||||
onBlur: NOOP,
|
||||
onFocus: NOOP,
|
||||
update: NOOP,
|
||||
/**
|
||||
* Update method called on every game step.
|
||||
*
|
||||
* @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.
|
||||
* @param {number} delta - The delta time elapsed since the last frame.
|
||||
*/
|
||||
update: function (time, delta) {
|
||||
this.sounds.forEach(function (sound) {
|
||||
sound.update(time, delta);
|
||||
});
|
||||
},
|
||||
destroy: NOOP
|
||||
});
|
||||
module.exports = BaseSoundManager;
|
||||
|
|
Loading…
Reference in a new issue