summaryrefslogtreecommitdiff
path: root/apps/web/src
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-26 02:59:30 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-26 02:59:30 +0200
commit685d9027409e7f19ee2dbd5fd91a0837c00eb60b (patch)
tree3b89fe54f81b571f80b8d4fe5ebc4ed9e48378bf /apps/web/src
parenteea6d43c82e1fd09d94d73001090dad205b1f1d2 (diff)
downloadopencut-685d9027409e7f19ee2dbd5fd91a0837c00eb60b.tar.gz
fix: follow-up to prev commit
Diffstat (limited to 'apps/web/src')
-rw-r--r--apps/web/src/sounds/sounds-store.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/src/sounds/sounds-store.ts b/apps/web/src/sounds/sounds-store.ts
index b9b3f070..13ced962 100644
--- a/apps/web/src/sounds/sounds-store.ts
+++ b/apps/web/src/sounds/sounds-store.ts
@@ -4,6 +4,7 @@ import { storageService } from "@/services/storage/service";
import { toast } from "sonner";
import { EditorCore } from "@/core";
import { buildLibraryAudioElement } from "@/timeline/element-utils";
+import { mediaTimeFromSeconds } from "@/wasm";
interface SoundsStore {
topSoundEffects: SoundEffect[];
@@ -227,7 +228,7 @@ export const useSoundsStore = create<SoundsStore>((set, get) => ({
const element = buildLibraryAudioElement({
sourceUrl: audioUrl,
name: sound.name,
- duration: sound.duration,
+ duration: mediaTimeFromSeconds({ seconds: sound.duration }),
startTime: currentTime,
buffer,
});