Removed min frequency clamping (low freqs could be used for pauses).
h3rald h3rald@h3rald.com
Tue, 10 Feb 2026 16:00:07 +0100
1 files changed,
0 insertions(+),
3 deletions(-)
jump to
M
devices/beeper.c
→
devices/beeper.c
@@ -16,7 +16,6 @@
/* 8-bit era constraints */ #define BEEPER_MAX_FREQ 0x2000 // 8192 Hz - typical PC speaker limit #define BEEPER_MAX_LEVEL 0x0F // 4-bit volume (0-15) -#define BEEPER_MIN_FREQ 0x14 // 20 Hz - below human hearing threshold #define BEEPER_SAMPLE_RATE 22050 // Period-accurate low sample rate // State for the beeper callback@@ -121,8 +120,6 @@
// Clamp to 8-bit era constraints if (pitch > BEEPER_MAX_FREQ) pitch = BEEPER_MAX_FREQ; - if (pitch < BEEPER_MIN_FREQ && pitch > 0) - pitch = BEEPER_MIN_FREQ; if (level > BEEPER_MAX_LEVEL) level = BEEPER_MAX_LEVEL;