mirror of
https://github.com/photonstorm/phaser
synced 2025-02-25 20:07:08 +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;
|
this.isPaused = false;
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
applyConfig: function () {
|
applyConfig: function () {
|
||||||
this.mute = this.currentConfig.mute;
|
this.mute = this.currentConfig.mute;
|
||||||
this.volume = this.currentConfig.volume;
|
this.volume = this.currentConfig.volume;
|
||||||
|
|
|
@ -57,6 +57,11 @@ var WebAudioSoundManager = new Class({
|
||||||
this.unlock();
|
this.unlock();
|
||||||
BaseSoundManager.call(this, game);
|
BaseSoundManager.call(this, game);
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
* @param game
|
||||||
|
* @returns {AudioContext}
|
||||||
|
*/
|
||||||
createAudioContext: function (game) {
|
createAudioContext: function (game) {
|
||||||
var audioConfig = game.config.audio;
|
var audioConfig = game.config.audio;
|
||||||
if (audioConfig && audioConfig.context) {
|
if (audioConfig && audioConfig.context) {
|
||||||
|
@ -69,6 +74,9 @@ var WebAudioSoundManager = new Class({
|
||||||
this.sounds.push(sound);
|
this.sounds.push(sound);
|
||||||
return sound;
|
return sound;
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
unlock: function () {
|
unlock: function () {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if (this.context.state === 'suspended') {
|
if (this.context.state === 'suspended') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue