MCPcopy Index your code
hub / github.com/CapSoftware/Cap / createAudioTrackSegment

Function createAudioTrackSegment

apps/desktop/src/routes/editor/audio.ts:30–49  ·  view source on GitHub ↗
(params: {
	start: number;
	end: number;
	track: number;
	path: string;
	name: string | null;
	duration: number | null;
})

Source from the content-addressed store, hash-verified

28export const AUDIO_TRACK_BG_CLASS = "bg-[var(--track-audio)]";
29
30export const createAudioTrackSegment = (params: {
31 start: number;
32 end: number;
33 track: number;
34 path: string;
35 name: string | null;
36 duration: number | null;
37}): AudioTrackSegment => ({
38 start: params.start,
39 end: params.end,
40 track: params.track,
41 path: params.path,
42 name: params.name,
43 enabled: true,
44 trimStart: 0,
45 volumeDb: 0,
46 fadeIn: 0,
47 fadeOut: 0,
48 duration: params.duration,
49});

Callers 1

context.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected