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