@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.js
CHANGED
|
@@ -3475,8 +3475,8 @@ var DawEditorElement = class extends import_lit12.LitElement {
|
|
|
3475
3475
|
syncPeaksForChangedClips(this, engineState.tracks);
|
|
3476
3476
|
}
|
|
3477
3477
|
});
|
|
3478
|
-
engine.on("
|
|
3479
|
-
this._currentTime =
|
|
3478
|
+
engine.on("pause", () => {
|
|
3479
|
+
this._currentTime = engine.getCurrentTime();
|
|
3480
3480
|
});
|
|
3481
3481
|
engine.on("stop", () => {
|
|
3482
3482
|
this._currentTime = engine.getCurrentTime();
|
|
@@ -3576,7 +3576,7 @@ var DawEditorElement = class extends import_lit12.LitElement {
|
|
|
3576
3576
|
splitAtPlayhead() {
|
|
3577
3577
|
return splitAtPlayhead({
|
|
3578
3578
|
effectiveSampleRate: this.effectiveSampleRate,
|
|
3579
|
-
currentTime: this.
|
|
3579
|
+
currentTime: this.currentTime,
|
|
3580
3580
|
isPlaying: this._isPlaying,
|
|
3581
3581
|
engine: this._engine,
|
|
3582
3582
|
dispatchEvent: (e) => this.dispatchEvent(e),
|
|
@@ -3594,6 +3594,9 @@ var DawEditorElement = class extends import_lit12.LitElement {
|
|
|
3594
3594
|
});
|
|
3595
3595
|
}
|
|
3596
3596
|
get currentTime() {
|
|
3597
|
+
if (this._isPlaying && this._engine) {
|
|
3598
|
+
return this._engine.getCurrentTime();
|
|
3599
|
+
}
|
|
3597
3600
|
return this._currentTime;
|
|
3598
3601
|
}
|
|
3599
3602
|
get isRecording() {
|