https://bugs.winehq.org/show_bug.cgi?id=46725
--- Comment #17 from Paul Gofman gofmanp@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-ixaudi... - "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-ixaudi... - "A submix voice performs a sample rate conversion from the input sample rate to the input rate of its output voices in pSendList."