@waveform-playlist/playout 9.4.0 → 9.5.0
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/dist/index.js +18 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1170,8 +1170,20 @@ var TonePlayout = class {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
this._loopHandler = null;
|
|
1172
1172
|
}
|
|
1173
|
-
this.tracks.forEach((track) =>
|
|
1174
|
-
|
|
1173
|
+
this.tracks.forEach((track) => {
|
|
1174
|
+
try {
|
|
1175
|
+
track.stopAllSources();
|
|
1176
|
+
} catch (err) {
|
|
1177
|
+
console.warn(`[waveform-playlist] Error stopping sources for track "${track.id}":`, err);
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
this.tracks.forEach((track) => {
|
|
1181
|
+
try {
|
|
1182
|
+
track.cancelFades();
|
|
1183
|
+
} catch (err) {
|
|
1184
|
+
console.warn(`[waveform-playlist] Error canceling fades for track "${track.id}":`, err);
|
|
1185
|
+
}
|
|
1186
|
+
});
|
|
1175
1187
|
this.clearCompletionEvent();
|
|
1176
1188
|
}
|
|
1177
1189
|
setMasterGain(gain) {
|
|
@@ -1256,14 +1268,10 @@ var TonePlayout = class {
|
|
|
1256
1268
|
getTransport2().seconds = time;
|
|
1257
1269
|
}
|
|
1258
1270
|
dispose() {
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
} catch (err) {
|
|
1264
|
-
console.warn("[waveform-playlist] Error removing Transport loop handler:", err);
|
|
1265
|
-
}
|
|
1266
|
-
this._loopHandler = null;
|
|
1271
|
+
try {
|
|
1272
|
+
this.stop();
|
|
1273
|
+
} catch (err) {
|
|
1274
|
+
console.warn("[waveform-playlist] Error stopping Transport during dispose:", err);
|
|
1267
1275
|
}
|
|
1268
1276
|
this.tracks.forEach((track) => {
|
|
1269
1277
|
try {
|