INNER CODE UNIT · TypeScript

fadeOutStart

vargHQ/sdk · src/ai-sdk/providers/editly/index.ts:616

        const fadeOutStart = duration - src.fadeOutDuration;
        audioFilter += `afade=t=out:st=${fadeOutStart}:d=${src.fadeOutDuration}:curve=${src.fadeOutCurve ?? "tri"},`;
      }
      audioFilter += `adelay=${Math.round(startTime * 1000)}|${Math.round(startTime * 1000)}`;
      audioFilter += `[${label}]`;
      filterParts.push(audioFilter);
      mixLabels.push(label);
    }
  }

  if (audioFilePath) {
    audioInputs.push(audioFilePath);
    const label = `abg${inputIdx}`;
    if (loopAudio) {
      filterParts.push(
        `[${inputIdx}:a]aloop=loop=-1:size=2e9,atrim=0:${totalDuration}[${label}]`,
      );
    } else {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…