math_clamp_safe() should always print a warning upon invalid bounds
Use SampleUtil for clamping sample values