From 53dbf050d4214a9dc9c4bf38c6189e2ca66b7ac4 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sun, 26 Nov 2017 16:19:56 +0100 Subject: [PATCH] Marked a few methods as private --- v3/src/sound/BaseSound.js | 3 +++ v3/src/sound/webaudio/WebAudioSoundManager.js | 8 ++++++++ 2 files changed, 11 insertions(+) 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') {