Marked a few methods as private

This commit is contained in:
Pavle Goloskokovic 2017-11-26 16:19:56 +01:00
parent 995f04f34a
commit 53dbf050d4
2 changed files with 11 additions and 0 deletions

View file

@ -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;

View file

@ -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') {