diff --git a/v3/src/sound/BaseSoundManager.js b/v3/src/sound/BaseSoundManager.js index ca7717ebf..2cc92f2ac 100644 --- a/v3/src/sound/BaseSoundManager.js +++ b/v3/src/sound/BaseSoundManager.js @@ -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;