[Bug 46725] Sniper Elite 3 and Sniper Elite V2 crash when using FAudio

WineHQ Bugzilla wine-bugs at winehq.org
Thu Mar 19 12:09:08 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=46725

--- Comment #8 from Ethan Lee <flibitijibibo at gmail.com> ---
The 480 figure makes perfect sense; for whatever reason WASAPI likes to make
the sample block size very specific depending on the device (for 48KHz it's
480, for 44.1KHz it's something even weirder like 520), which I suspect is what
this game is doing for the mastering voice. The only question is, is it
hardcoded and setting the sound card output to a different rate/configuration
is enough to crash the game even on Windows (surprisingly likely), or is the
game querying WASAPI directly to get the buffer size and allocating the buffer
based on that... for FAudio I'm not sure what the correct solution is since the
quantum is _supposed_ to be 512 by default (unless you specify
XAUDIO2_QUANTUM_1024) but there isn't really anything in the spec that
guarantees it, just an off-hand mention of a ~10ms update interval.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list