mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Marked a few methods as private
This commit is contained in:
parent
995f04f34a
commit
53dbf050d4
2 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue