@dawcore/transport 0.0.9 → 0.0.10
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.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -654,7 +654,7 @@ var MasterNode = class {
|
|
|
654
654
|
try {
|
|
655
655
|
this._gainNode.disconnect();
|
|
656
656
|
} catch (err) {
|
|
657
|
-
console.warn("[waveform-playlist] MasterNode.dispose: error disconnecting:"
|
|
657
|
+
console.warn("[waveform-playlist] MasterNode.dispose: error disconnecting: " + String(err));
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
};
|
|
@@ -1575,6 +1575,11 @@ var _Transport = class _Transport {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
trackNode.disconnectEffects();
|
|
1577
1577
|
}
|
|
1578
|
+
/** The master output AudioNode. Connect your own nodes (analyzers, recorders, etc.)
|
|
1579
|
+
* in parallel. The transport already routes this to audioContext.destination. */
|
|
1580
|
+
get masterOutputNode() {
|
|
1581
|
+
return this._masterNode.output;
|
|
1582
|
+
}
|
|
1578
1583
|
// --- Events ---
|
|
1579
1584
|
on(event, cb) {
|
|
1580
1585
|
if (!this._listeners.has(event)) {
|
|
@@ -1887,6 +1892,9 @@ var NativePlayoutAdapter = class {
|
|
|
1887
1892
|
secondsToTicks(seconds) {
|
|
1888
1893
|
return this._transport.timeToTick(seconds);
|
|
1889
1894
|
}
|
|
1895
|
+
get masterOutputNode() {
|
|
1896
|
+
return this._transport.masterOutputNode;
|
|
1897
|
+
}
|
|
1890
1898
|
dispose() {
|
|
1891
1899
|
this._transport.dispose();
|
|
1892
1900
|
}
|