@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.js
CHANGED
|
@@ -1192,8 +1192,20 @@ var TonePlayout = class {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
this._loopHandler = null;
|
|
1194
1194
|
}
|
|
1195
|
-
this.tracks.forEach((track) =>
|
|
1196
|
-
|
|
1195
|
+
this.tracks.forEach((track) => {
|
|
1196
|
+
try {
|
|
1197
|
+
track.stopAllSources();
|
|
1198
|
+
} catch (err) {
|
|
1199
|
+
console.warn(`[waveform-playlist] Error stopping sources for track "${track.id}":`, err);
|
|
1200
|
+
}
|
|
1201
|
+
});
|
|
1202
|
+
this.tracks.forEach((track) => {
|
|
1203
|
+
try {
|
|
1204
|
+
track.cancelFades();
|
|
1205
|
+
} catch (err) {
|
|
1206
|
+
console.warn(`[waveform-playlist] Error canceling fades for track "${track.id}":`, err);
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1197
1209
|
this.clearCompletionEvent();
|
|
1198
1210
|
}
|
|
1199
1211
|
setMasterGain(gain) {
|
|
@@ -1278,14 +1290,10 @@ var TonePlayout = class {
|
|
|
1278
1290
|
(0, import_tone4.getTransport)().seconds = time;
|
|
1279
1291
|
}
|
|
1280
1292
|
dispose() {
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
} catch (err) {
|
|
1286
|
-
console.warn("[waveform-playlist] Error removing Transport loop handler:", err);
|
|
1287
|
-
}
|
|
1288
|
-
this._loopHandler = null;
|
|
1293
|
+
try {
|
|
1294
|
+
this.stop();
|
|
1295
|
+
} catch (err) {
|
|
1296
|
+
console.warn("[waveform-playlist] Error stopping Transport during dispose:", err);
|
|
1289
1297
|
}
|
|
1290
1298
|
this.tracks.forEach((track) => {
|
|
1291
1299
|
try {
|