Module: wine
Branch: master
Commit: 14c44d0b0a2fc0ead5bc75615864ff850a44c4d5
URL: https://gitlab.winehq.org/wine/wine/-/commit/14c44d0b0a2fc0ead5bc75615864ff…
Author: Zebediah Figura <zfigura(a)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.
---
configure | 1 +
configure.ac | 1 +
dlls/xapofx1_1/Makefile.in | 2 +
dlls/xapofx1_2/Makefile.in | 2 +
dlls/xapofx1_3/Makefile.in | 2 +
dlls/xapofx1_4/Makefile.in | 2 +
dlls/xapofx1_5/Makefile.in | 2 +
dlls/xaudio2_0/Makefile.in | 1 -
dlls/xaudio2_1/Makefile.in | 1 -
dlls/xaudio2_2/Makefile.in | 1 -
dlls/xaudio2_3/Makefile.in | 1 -
dlls/xaudio2_4/Makefile.in | 1 -
dlls/xaudio2_5/Makefile.in | 1 -
dlls/xaudio2_6/Makefile.in | 1 -
dlls/xaudio2_7/Makefile.in | 1 -
dlls/xaudio2_7/compat.c | 2853 -------------------------------
dlls/xaudio2_7/tests/Makefile.in | 3 +
dlls/xaudio2_7/tests/xaudio2.c | 391 ++---
dlls/xaudio2_7/tests/xaudio_classes.idl | 24 +
dlls/xaudio2_7/xapo.c | 5 +-
dlls/xaudio2_7/xaudio_classes.idl | 186 +-
dlls/xaudio2_7/xaudio_dll.c | 353 ++--
dlls/xaudio2_7/xaudio_private.h | 73 +-
dlls/xaudio2_8/Makefile.in | 2 +-
dlls/xaudio2_8/tests/Makefile.in | 9 +
dlls/xaudio2_9/Makefile.in | 1 -
include/xaudio2.idl | 1065 +++---------
include/xaudio2fx.idl | 124 +-
28 files changed, 664 insertions(+), 4445 deletions(-)