https://bugs.winehq.org/show_bug.cgi?id=46725
--- Comment #12 from Paul Gofman gofmanp@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.