http://bugs.winehq.org/show_bug.cgi?id=14717
--- Comment #96 from Alexander E. Patrakov patrakov@gmail.com 2010-12-31 08:19:56 CST --- Further tests confirm that the volume bug is indeed fixed for upsampling. As indicated below, I can't reliably test downsampling due to another bug in your patch.
In the downsampling case your patch causes foobar2000 to eat 100% CPU. stutter (e.g., it says "wr-wr-ro-ro-ong-ong-n" instead of "wrong") and move the position slider back and forth on quality settings other than 0 or 1. And on these quality settings, the transition frequency is severely miscalculated (according to my test with playing white noise wav file in foobar2000 and recording wine output digitally, it is around 2 kHz at quality 1 and around 3 kHz at quality 0).
To reproduce, try to upsample any mono wav file to 96 kHz in audacity and then play it through foobar2000 when both wine and dmix are configured to use 44100 Hz as the default sample rate.