Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(cursor): stop the click volume where the export limiter does

EtienneLescotb99f4ce35634
diff --git a/src/lib/ai-edition/stylePresets.test.ts b/src/lib/ai-edition/stylePresets.test.ts
index 2a5c4b83e..46e445a7a 100644
--- a/src/lib/ai-edition/stylePresets.test.ts
+++ b/src/lib/ai-edition/stylePresets.test.ts
@@ -183,7 +183,7 @@ describe("parseStylePresetAppearance", () => {
expect(read({ ...older, clickSound: true }).clickSound).toBe(true);
expect(read({ ...older, clickSoundGainDb: -12 }).clickSoundGainDb).toBe(-12);
// Past the bound the mixer would flatten, the preset keeps its meaning by clamping.
- expect(read({ ...older, clickSoundGainDb: 30 }).clickSoundGainDb).toBe(12);
+ expect(read({ ...older, clickSoundGainDb: 30 }).clickSoundGainDb).toBe(0);
expect(() => read({ ...older, clickImpact: "yes" })).toThrow(/cursor\.clickImpact/);
expect(() => read({ ...older, clickSound: "yes" })).toThrow(/cursor\.clickSound/);
});
diff --git a/src/lib/projectDefaults.ts b/src/lib/projectDefaults.ts
index 91a9eeaf8..124c48034 100644
--- a/src/lib/projectDefaults.ts
+++ b/src/lib/projectDefaults.ts
@@ -309,9 +309,10 @@ export const SETTING_BOUNDS = {
cursorMotionBlur: [0, 1],
// Past about 4.2 the arrow shrank to nothing on every click.
cursorClickBounce: [0, 2],
- // The click sound's level in dB. −24 is a whisper and +12 is full scale for the bundled hits,
- // which are cut to a 0.7 peak; past +12 the compositor's own hit clamp would start flattening.
- cursorClickSoundGainDb: [-24, 12],
+ // The click sound's level in dB. The bundled hits are cut to a 0.7 peak, which the export's
+ // −1.5 dBFS limiter already reaches by about +1.6: measured, +6 dB came out only 1.6 dB
+ // louder. So 0 is the top, and the slider only turns them down.
+ cursorClickSoundGainDb: [-24, 0],
// 16 is Chromium's `playbackRate` ceiling: past it the preview could not show what the
// export rendered.
playbackSpeed: [0.25, 16],