@dawcore/components 0.0.8 → 0.0.9
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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -3429,8 +3429,8 @@ var DawEditorElement = class extends LitElement8 {
|
|
|
3429
3429
|
syncPeaksForChangedClips(this, engineState.tracks);
|
|
3430
3430
|
}
|
|
3431
3431
|
});
|
|
3432
|
-
engine.on("
|
|
3433
|
-
this._currentTime =
|
|
3432
|
+
engine.on("pause", () => {
|
|
3433
|
+
this._currentTime = engine.getCurrentTime();
|
|
3434
3434
|
});
|
|
3435
3435
|
engine.on("stop", () => {
|
|
3436
3436
|
this._currentTime = engine.getCurrentTime();
|
|
@@ -3530,7 +3530,7 @@ var DawEditorElement = class extends LitElement8 {
|
|
|
3530
3530
|
splitAtPlayhead() {
|
|
3531
3531
|
return splitAtPlayhead({
|
|
3532
3532
|
effectiveSampleRate: this.effectiveSampleRate,
|
|
3533
|
-
currentTime: this.
|
|
3533
|
+
currentTime: this.currentTime,
|
|
3534
3534
|
isPlaying: this._isPlaying,
|
|
3535
3535
|
engine: this._engine,
|
|
3536
3536
|
dispatchEvent: (e) => this.dispatchEvent(e),
|
|
@@ -3548,6 +3548,9 @@ var DawEditorElement = class extends LitElement8 {
|
|
|
3548
3548
|
});
|
|
3549
3549
|
}
|
|
3550
3550
|
get currentTime() {
|
|
3551
|
+
if (this._isPlaying && this._engine) {
|
|
3552
|
+
return this._engine.getCurrentTime();
|
|
3553
|
+
}
|
|
3551
3554
|
return this._currentTime;
|
|
3552
3555
|
}
|
|
3553
3556
|
get isRecording() {
|