Avoid branching when clamping and converting float samples to integer