diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-26 02:59:30 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-04-26 02:59:30 +0200 |
| commit | 685d9027409e7f19ee2dbd5fd91a0837c00eb60b (patch) | |
| tree | 3b89fe54f81b571f80b8d4fe5ebc4ed9e48378bf /apps/web/src/sounds | |
| parent | eea6d43c82e1fd09d94d73001090dad205b1f1d2 (diff) | |
| download | opencut-685d9027409e7f19ee2dbd5fd91a0837c00eb60b.tar.gz | |
fix: follow-up to prev commit
Diffstat (limited to 'apps/web/src/sounds')
| -rw-r--r-- | apps/web/src/sounds/sounds-store.ts | 3 |
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, }); |
