refactor(audio): move source track type to shared module

This commit is contained in:
Som Samantray committed 2026-10-10 23:36:35 +05:30
1 parent 84bb5b660a
commit 13aa646afc
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -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;
+2 -1
View File
@@ -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 {