[PATCH 2/5] dsound: Calculate required_input more accurately.