Does this happen with the latest FAudio revision? We hit a regression recently due to issues with resample padding; this fixed the SamplesPlayed test for me:

https://github.com/FNA-XNA/FAudio/commit/13cd65feeb890802e5854d5dd1207a7ebd2ed0bc

-Ethan

On Feb 25, 2019, at 10:35 AM, Alexandre Julliard <julliard@winehq.org> wrote:

elee@codeweavers.com writes:

From: Ethan Lee <elee@codeweavers.com>

FAudio Website: https://github.com/FNA-XNA/FAudio

I'm getting test failures here (I added the tracing of the samples count):

../../../../wine/tools/runtest -q -P wine -T ../../.. -M xaudio2_7.dll -p xaudio2_7_test.exe.so xaudio2 && touch xaudio2.ok
xaudio2.c:527: Test succeeded inside todo block: SetSourceSampleRate failed: 00000000
xaudio2.c:543: Test failed: Got wrong samples played 22069

--
Alexandre Julliard
julliard@winehq.org