Skip to main content

Module validation

Module validation 

Source
Expand description

Parameter validation utilities.

These functions help ensure parameter values are safe for real-time audio processing.

Functions§

clamp_or_default
Clamps a value to a range, replacing NaN/Infinity with a default.
is_finite
Validates that a value is finite (not NaN or Infinity).
validate_frequency
Validates a frequency value (positive, finite, reasonable range).
validate_gain
Validates a gain value (0.0 to 1.0 or higher).
validate_time_ms
Validates a time value in milliseconds.