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

WineHQ Bugzilla wine-bugs at winehq.org
Thu Mar 19 15:56:03 CDT 2020


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

--- Comment #17 from Paul Gofman <gofmanp at gmail.com> ---
(In reply to Ethan Lee from comment #13)

> 
> 480 SPB * 48000 (server) / 48000 (master) = Still 480
> 
> However, if the master is at 44.1KHz, it gets weird:
> 
> 480 SPB * 48000 (server) / 44100 (master) = ~522...
> 

You are talking about mastering voice frequency vs device frequency here. If I
read [1, 2] correctly, this does not have much to do with source and submix
voices. If submix and mastering voices perform sample rate conversion anyway
should device sample rate necessarily influence source and submix voices buffer
sizes? Especially given that application can set any frequency on submix voice
which does not have common denominators with master voice.

1.
https://docs.microsoft.com/en-us/windows/win32/api/xaudio2/nf-xaudio2-ixaudio2-createmasteringvoice
- "The mastering voice performs a sample rate conversion from this input sample
rate to the actual device output rate."

2.
https://docs.microsoft.com/en-us/windows/win32/api/xaudio2/nf-xaudio2-ixaudio2-createsubmixvoice
- "A submix voice performs a sample rate conversion from the input sample rate
to the input rate of its output voices in pSendList."

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