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

WineHQ Bugzilla wine-bugs at winehq.org
Thu Mar 19 14:57:54 CDT 2020


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

--- Comment #12 from Paul Gofman <gofmanp at gmail.com> ---
(In reply to Andrey Gusev from comment #11)
> If I understand it right we are talking about XAUDIO2_QUANTUM_DENOMINATOR ?

I am not sure about quantum denominator, what I see so far Windows seem to
reliably make the number of frames for XAPOs to be 1 / 10 of frequency, and the
application is relying on that. I have no idea what the quantum is supposed to
be theory, but FWIW the following definitions in xaudio2.dll look pretty
consistent with what I get with the above test on Windows:

UINT32 XAUDIO2_QUANTUM_NUMERATOR = 1;
UINT32 XAUDIO2_QUANTUM_DENOMINATOR = 100;
const float XAUDIO2_QUANTUM_MS = (1000.0 * XAUDIO2_QUANTUM_NUMERATOR /
XAUDIO2_QUANTUM_DENOMINATOR);

That is, XAUDIO2_QUANTUM_MS is 10ms, and number of samples in 10ms is freq[kHz]
/ 100.

-- 
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