https://bugs.winehq.org/show_bug.cgi?id=42856
Bug ID: 42856 Summary: osu! - high sound latency with winepulse compared to winealsa Product: Wine Version: 2.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dsound Assignee: wine-bugs@winehq.org Reporter: yalterz@gmail.com Distribution: ---
I'm trying to set up PulseAudio to achieve the same low audio latency as I'm getting with just ALSA. Looks like I managed to achieve this, but not as I would expect.
Currently my setup is: PulseAudio with default configuration, along with pulseaudio-alsa integration which basically forwards all ALSA-using programs straight to Pulse. I am using patched winealsa.drv for reduced latency (changing three constants at the top of mmdevdrv.c — DefaultPeriod, MinimumPeriod, EXTRA_SAFE_RT — to lower values, the ones that work for me: 20000, 20000, 11000 respectively). I applied a very similar patch to winepulse.drv.
When running osu! through ALSA (sound=alsa), which effectively runs it through ALSA->PulseAudio->ALSA device, the audio latency is almost non-existant — similar if not the same as what I was getting with just ALSA.
When running osu! through PulseAudio (sound=pulse), effectively PulseAudio->ALSA device, the audio latency is noticeably higher (at least 20ms higher), even though it practically removes one extra step from the audio "chain".