Cleanup oneline if statements
Use clamp_s16 to clamp values to int16_t range