diff --git a/v3/src/sound/BaseSound.js b/v3/src/sound/BaseSound.js index dc996f972..3a3d04ea1 100644 --- a/v3/src/sound/BaseSound.js +++ b/v3/src/sound/BaseSound.js @@ -245,6 +245,9 @@ var BaseSound = new Class({ this.isPaused = false; return true; }, + /** + * @private + */ applyConfig: function () { this.mute = this.currentConfig.mute; this.volume = this.currentConfig.volume; diff --git a/v3/src/sound/webaudio/WebAudioSoundManager.js b/v3/src/sound/webaudio/WebAudioSoundManager.js index a1300093b..11e956c75 100644 --- a/v3/src/sound/webaudio/WebAudioSoundManager.js +++ b/v3/src/sound/webaudio/WebAudioSoundManager.js @@ -57,6 +57,11 @@ var WebAudioSoundManager = new Class({ this.unlock(); BaseSoundManager.call(this, game); }, + /** + * @private + * @param game + * @returns {AudioContext} + */ createAudioContext: function (game) { var audioConfig = game.config.audio; if (audioConfig && audioConfig.context) { @@ -69,6 +74,9 @@ var WebAudioSoundManager = new Class({ this.sounds.push(sound); return sound; }, + /** + * @private + */ unlock: function () { var _this = this; if (this.context.state === 'suspended') {