diff --git a/src/components/AudioSpeedControl.tsx b/src/components/AudioSpeedControl.tsx index dd6c6007..5ce82103 100644 --- a/src/components/AudioSpeedControl.tsx +++ b/src/components/AudioSpeedControl.tsx @@ -145,6 +145,54 @@ export default function AudioSpeedControl({ recipe, onChange }: Props) { )} +
+
+ + + {recipe.audioFadeIn.toFixed(1)}s + +
+ onChange({ audioFadeIn: Number(e.target.value) })} + aria-label="Audio fade in duration" + className="w-full accent-film-600 disabled:cursor-not-allowed" + /> +
+ + + {recipe.audioFadeOut.toFixed(1)}s + +
+ onChange({ audioFadeOut: Number(e.target.value) })} + aria-label="Audio fade out duration" + className="w-full accent-film-600 disabled:cursor-not-allowed" + /> + {!recipe.keepAudio && ( +

+ Enable audio to adjust fade timing. +

+ )} +
+ {recipe.keepAudio && (recipe.trimStart !== 0 || recipe.trimEnd !== null) && (