is_SetHardwareGain's master-gain parameter is documented as 0-100; out-of-range values are not guaranteed to be handled predictably by the SDK, so clamp before passing through.