react-simple-game-engine 0.2.90 → 0.2.91
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/lib/classes/sound.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["../../src/classes/sound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,qBAAa,KAAK;
|
1
|
+
{"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["../../src/classes/sound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,qBAAa,KAAK;aAWY,IAAI,EAAE,SAAS;IAV3C,MAAM,CAAC,UAAU,EAAE,eAAe,CAOhC;IACF,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAe;gBAEpB,IAAI,GAAE,SAA0B;IAE5D,IAAI,MAAM,IAIM,MAAM,CAFrB;IAED,IAAI,MAAM,CAAC,GAAG,EAAE,MAAM,EAErB;IAED,IAAI,SAAS,YAEZ;IAEK,OAAO;IAQP,KAAK;IAIL,MAAM;IAQN,IAAI;IAQJ,IAAI;CAYX"}
|
package/lib/classes/sound.js
CHANGED
@@ -48,7 +48,6 @@ var Sound = /** @class */ (function () {
|
|
48
48
|
return this.native.volume;
|
49
49
|
},
|
50
50
|
set: function (vol) {
|
51
|
-
this._volume = vol;
|
52
51
|
this.native.volume = vol;
|
53
52
|
},
|
54
53
|
enumerable: false,
|
@@ -121,7 +120,7 @@ var Sound = /** @class */ (function () {
|
|
121
120
|
};
|
122
121
|
Sound.prototype.play = function () {
|
123
122
|
return __awaiter(this, void 0, void 0, function () {
|
124
|
-
var canPlay, loop
|
123
|
+
var canPlay, loop;
|
125
124
|
return __generator(this, function (_a) {
|
126
125
|
switch (_a.label) {
|
127
126
|
case 0:
|
@@ -134,9 +133,7 @@ var Sound = /** @class */ (function () {
|
|
134
133
|
else {
|
135
134
|
this.native.loop = false;
|
136
135
|
}
|
137
|
-
|
138
|
-
this.native.volume = this._volume;
|
139
|
-
return [4 /*yield*/, exec];
|
136
|
+
return [4 /*yield*/, this.native.play()];
|
140
137
|
case 1:
|
141
138
|
_a.sent();
|
142
139
|
_a.label = 2;
|