fix: follow-up to prev commit
This commit is contained in:
parent
eea6d43c82
commit
685d902740
|
|
@ -4,6 +4,7 @@ import { storageService } from "@/services/storage/service";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import { EditorCore } from "@/core";
|
import { EditorCore } from "@/core";
|
||||||
import { buildLibraryAudioElement } from "@/timeline/element-utils";
|
import { buildLibraryAudioElement } from "@/timeline/element-utils";
|
||||||
|
import { mediaTimeFromSeconds } from "@/wasm";
|
||||||
|
|
||||||
interface SoundsStore {
|
interface SoundsStore {
|
||||||
topSoundEffects: SoundEffect[];
|
topSoundEffects: SoundEffect[];
|
||||||
|
|
@ -227,7 +228,7 @@ export const useSoundsStore = create<SoundsStore>((set, get) => ({
|
||||||
const element = buildLibraryAudioElement({
|
const element = buildLibraryAudioElement({
|
||||||
sourceUrl: audioUrl,
|
sourceUrl: audioUrl,
|
||||||
name: sound.name,
|
name: sound.name,
|
||||||
duration: sound.duration,
|
duration: mediaTimeFromSeconds({ seconds: sound.duration }),
|
||||||
startTime: currentTime,
|
startTime: currentTime,
|
||||||
buffer,
|
buffer,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue