dsound: Simplify the calculation of sound attenuation due to distance.