summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/commands/timeline/element/toggle-source-audio-separation.ts
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-06 01:23:47 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-06 01:23:47 +0200
commitfcc09e80e253831a163e2e4941542e0b34f80740 (patch)
tree4cc7aafd0756bb3fa23dfd41080237e462b5ecf2 /apps/web/src/lib/commands/timeline/element/toggle-source-audio-separation.ts
parentc56d6f8188cc1c0e72d75611269a8bda7b79e727 (diff)
parentdedb13546a16235e7d6649961d0c9b235f62aa34 (diff)
downloadopencut-fcc09e80e253831a163e2e4941542e0b34f80740.tar.gz
Merge branch 'temp'
Diffstat (limited to 'apps/web/src/lib/commands/timeline/element/toggle-source-audio-separation.ts')
-rw-r--r--apps/web/src/lib/commands/timeline/element/toggle-source-audio-separation.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/src/lib/commands/timeline/element/toggle-source-audio-separation.ts b/apps/web/src/lib/commands/timeline/element/toggle-source-audio-separation.ts
index c14a5a42..fc195cba 100644
--- a/apps/web/src/lib/commands/timeline/element/toggle-source-audio-separation.ts
+++ b/apps/web/src/lib/commands/timeline/element/toggle-source-audio-separation.ts
@@ -47,7 +47,7 @@ export class ToggleSourceAudioSeparationCommand extends Command {
return;
}
- if (canRecoverSourceAudio({ element: sourceElement })) {
+ if (canRecoverSourceAudio(sourceElement)) {
editor.timeline.updateTracks(
updateSourceAudioEnabled({
tracks: this.savedState,
@@ -63,7 +63,7 @@ export class ToggleSourceAudioSeparationCommand extends Command {
.media
.getAssets()
.find((asset) => asset.id === sourceElement.mediaId);
- if (!canExtractSourceAudio({ element: sourceElement, mediaAsset })) {
+ if (!canExtractSourceAudio(sourceElement, mediaAsset)) {
return;
}
if (sourceElement.duration <= 0) {