https://bugs.winehq.org/show_bug.cgi?id=30639
--- Comment #45 from Alexander E. Patrakov patrakov@gmail.com --- No, this will not allow resampling multiple streams simultaneously, as all the resampling is currently done in the (single) mixer thread. Moving resampling outside of the lock will still be beneficial, because it will allow other threads (that presumably produce sound) to do useful work while the mixer thread is resampling.
And please don't move resampling to some other thread that already exists -- the problem is that there is no reliable event to trigger it. E.g. some games simply don't unlock their secondary buffers. Also, it is very hard to handle the situation where a game writes some audio data to its secondary buffer speculatively and then corrects it later, because the output also depends on some data immediately preceding what was overwritten.