You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sound property 'volume' is declared twice in sound/Sound.js. I'm not sure if the first one is an artifact that should have been removed when the defineProperty was added, or if it's simply being overridden.
Because of these two, the 'volume' property is listed twice in the API docs with different descriptions.
Line 44, in the constructor:
/**
* @property {number} volume - The sound or sound marker volume. A value between 0 (silence) and 1 (full volume).
*/
this.volume = volume;
// Causes an Index size error in Firefox if you don't clamp the value
if (this.game.device.firefox && this.usingAudioTag)
{
value = this.game.math.clamp(value, 0, 1);
}
if (this._muted)
{
this._muteVolume = value;
return;
}
this._tempVolume = value;
this._volume = value;
if (this.usingWebAudio)
{
this.gainNode.gain.value = value;
}
else if (this.usingAudioTag && this._sound)
{
this._sound.volume = value;
}
}
The text was updated successfully, but these errors were encountered:
This Issue is about:
Sound property 'volume' is declared twice in sound/Sound.js. I'm not sure if the first one is an artifact that should have been removed when the defineProperty was added, or if it's simply being overridden.
Because of these two, the 'volume' property is listed twice in the API docs with different descriptions.
Line 44, in the constructor:
And at line 1158:
The text was updated successfully, but these errors were encountered: