@awayjs/scene 0.13.253 → 0.13.254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/awayjs-scene.umd.js +11 -6
- package/bundle/awayjs-scene.umd.js.map +1 -1
- package/bundle/awayjs-scene.umd.min.js.map +1 -1
- package/bundle/awayjs-scene.umd.min.js.map.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/display/MovieClip.d.ts +0 -1
- package/dist/lib/display/MovieClip.d.ts.map +1 -1
- package/dist/lib/display/MovieClip.js +10 -5
- package/index.ts +1 -1
- package/lib/display/MovieClip.ts +6 -5
- package/package.json +1 -1
|
@@ -6849,7 +6849,6 @@ var MovieClip = /** @class */ (function (_super) {
|
|
|
6849
6849
|
*/
|
|
6850
6850
|
_this.constructedKeyFrameIndex = -1;
|
|
6851
6851
|
_this._soundVolume = 1;
|
|
6852
|
-
_this._parentSoundVolume = 1;
|
|
6853
6852
|
_this._isButton = false;
|
|
6854
6853
|
_this._buttonMode = false;
|
|
6855
6854
|
_this._useHandCursor = true;
|
|
@@ -6960,6 +6959,7 @@ var MovieClip = /** @class */ (function (_super) {
|
|
|
6960
6959
|
};
|
|
6961
6960
|
MovieClip.prototype.startSound = function (sound, loopsToPlay, onSoundComplete) {
|
|
6962
6961
|
var channel = sound.play(0, loopsToPlay);
|
|
6962
|
+
channel.volume = this._soundVolume;
|
|
6963
6963
|
if (onSoundComplete)
|
|
6964
6964
|
channel.addEventListener(_awayjs_core_dist_lib_managers_BaseAudioChannel.BaseAudioChannel.COMPLETE, onSoundComplete);
|
|
6965
6965
|
//internal listener to clear
|
|
@@ -7079,8 +7079,13 @@ var MovieClip = /** @class */ (function (_super) {
|
|
|
7079
7079
|
return;
|
|
7080
7080
|
}
|
|
7081
7081
|
this._soundVolume = value;
|
|
7082
|
-
for (var key in this.
|
|
7083
|
-
this.
|
|
7082
|
+
for (var key in this._activeSounds) {
|
|
7083
|
+
var channels = this._activeSounds[key];
|
|
7084
|
+
if (channels)
|
|
7085
|
+
for (var _i = 0, channels_1 = channels; _i < channels_1.length; _i++) {
|
|
7086
|
+
var c = channels_1[_i];
|
|
7087
|
+
c.volume = value;
|
|
7088
|
+
}
|
|
7084
7089
|
}
|
|
7085
7090
|
var len = this._children.length;
|
|
7086
7091
|
var child;
|
|
@@ -7102,8 +7107,8 @@ var MovieClip = /** @class */ (function (_super) {
|
|
|
7102
7107
|
}
|
|
7103
7108
|
var channels = this._activeSounds[sound.id];
|
|
7104
7109
|
if (channels) {
|
|
7105
|
-
for (var _i = 0,
|
|
7106
|
-
var c =
|
|
7110
|
+
for (var _i = 0, channels_2 = channels; _i < channels_2.length; _i++) {
|
|
7111
|
+
var c = channels_2[_i];
|
|
7107
7112
|
c.stop();
|
|
7108
7113
|
}
|
|
7109
7114
|
delete this._activeSounds[sound.id];
|
|
@@ -18173,7 +18178,7 @@ var Scene = /** @class */ (function () {
|
|
|
18173
18178
|
_awayjs_graphics.MaterialManager.materialClass = _awayjs_materials.MethodMaterial;
|
|
18174
18179
|
_awayjs_graphics.MaterialManager.textureClass = _awayjs_renderer.ImageTexture2D;
|
|
18175
18180
|
|
|
18176
|
-
console.debug('AwayJS - Scene - 0.13.
|
|
18181
|
+
console.debug('AwayJS - Scene - 0.13.254');
|
|
18177
18182
|
|
|
18178
18183
|
exports.Timeline = Timeline;
|
|
18179
18184
|
exports.ControllerBase = ControllerBase;
|