@dawcore/transport 0.0.8 → 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 +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -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
|
};
|
|
@@ -1219,6 +1219,9 @@ var _Transport = class _Transport {
|
|
|
1219
1219
|
get audioContext() {
|
|
1220
1220
|
return this._audioContext;
|
|
1221
1221
|
}
|
|
1222
|
+
get ppqn() {
|
|
1223
|
+
return this._ppqn;
|
|
1224
|
+
}
|
|
1222
1225
|
// --- Playback ---
|
|
1223
1226
|
play(startTime, endTime) {
|
|
1224
1227
|
if (this._playing) return;
|
|
@@ -1572,6 +1575,11 @@ var _Transport = class _Transport {
|
|
|
1572
1575
|
}
|
|
1573
1576
|
trackNode.disconnectEffects();
|
|
1574
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
|
+
}
|
|
1575
1583
|
// --- Events ---
|
|
1576
1584
|
on(event, cb) {
|
|
1577
1585
|
if (!this._listeners.has(event)) {
|
|
@@ -1767,6 +1775,12 @@ var NativePlayoutAdapter = class {
|
|
|
1767
1775
|
this._audioContext = audioContext;
|
|
1768
1776
|
this._transport = new Transport(audioContext, options);
|
|
1769
1777
|
}
|
|
1778
|
+
get audioContext() {
|
|
1779
|
+
return this._audioContext;
|
|
1780
|
+
}
|
|
1781
|
+
get ppqn() {
|
|
1782
|
+
return this._transport.ppqn;
|
|
1783
|
+
}
|
|
1770
1784
|
get transport() {
|
|
1771
1785
|
return this._transport;
|
|
1772
1786
|
}
|
|
@@ -1878,6 +1892,9 @@ var NativePlayoutAdapter = class {
|
|
|
1878
1892
|
secondsToTicks(seconds) {
|
|
1879
1893
|
return this._transport.timeToTick(seconds);
|
|
1880
1894
|
}
|
|
1895
|
+
get masterOutputNode() {
|
|
1896
|
+
return this._transport.masterOutputNode;
|
|
1897
|
+
}
|
|
1881
1898
|
dispose() {
|
|
1882
1899
|
this._transport.dispose();
|
|
1883
1900
|
}
|