Create polished demo videos without editing skills. Mac/Windows/Linux
refactor(audio): move source track type to shared module
Som Samantray13aa646afcc6
diff --git a/src/lib/exporter/audioProcessorShared.ts b/src/lib/exporter/audioProcessorShared.tsindex a48062a7..261615df 100644--- a/src/lib/exporter/audioProcessorShared.ts+++ b/src/lib/exporter/audioProcessorShared.ts@@ -5,7 +5,8 @@ import type {SourceAudioTrackSettings,TrimRegion,} from "@/components/video-editor/types";-import type { SourceTrackId } from "@/lib/exporter/audioRoutingEngine";++export type SourceTrackId = "mic" | "system" | "mixed";export const AUDIO_BITRATE = 128_000;export const DECODE_BACKPRESSURE_LIMIT = 20;diff --git a/src/lib/exporter/audioRoutingEngine.ts b/src/lib/exporter/audioRoutingEngine.tsindex 411d64e6..7bf618ea 100644--- a/src/lib/exporter/audioRoutingEngine.ts+++ b/src/lib/exporter/audioRoutingEngine.ts@@ -1,11 +1,12 @@import { SOURCE_AUDIO_NORMALIZE_GAIN } from "@/components/video-editor/audio/audioTypes";import type { AudioRegion } from "@/components/video-editor/types";import { getSourceTrackIdFromPath } from "./audioProcessorShared";+import type { SourceTrackId } from "./audioProcessorShared";import { resolveSourceAudioFallbackPaths } from "./sourceAudioFallback";export { getSourceTrackIdFromPath };+export type { SourceTrackId };-export type SourceTrackId = "mic" | "system" | "mixed";export type ResolvedAudioTrackKind = "user" | "system" | "mic" | "mixed" | "embedded";export interface ResolvedAudioTrack {