https://bugs.winehq.org/show_bug.cgi?id=55016
Bug ID: 55016 Summary: xaudio2_8:xaudio2 - test_simple_streaming() crashes on Windows 8+ Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: xaudio2 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
xaudio2_8:xaudio2 - test_simple_streaming() crashes on Windows 8+:
xaudio2.c:339: Test failed: Got hr 0x80004002. xaudio2.c:339: this is the last test seen before the exception 13dc:xaudio2: unhandled exception c0000005 at 00402D6A
See https://test.winehq.org/data/patterns.html#xaudio2_8:xaudio2
A bisect shows that the failures started with this commit:
commit 14c44d0b0a2fc0ead5bc75615864ff850a44c4d5 Author: Zebediah Figura zfigura@codeweavers.com Date: Mon Apr 24 16:59:08 2023 -0500
xaudio2: Use the preprocessor to modify definitions in xaudio2.idl and xaudio2fx.idl.
Instead of including the IDLs directly, define a local IDL that #includes them, with XAUDIO2_VER defined, and include that generated header.
Get rid of compat.c, and use XAUDIO2_VER to modify the code in the other source files.
Build the tests for both xaudio2_7 and xaudio2_8 using PARENTSRC, and use XAUDIO2_VER to select between them. This mirrors the approach taken for d3dcompiler, and makes it easier to test more xaudio2 versions in the future.