Windows tests don't compile (unknown type name ‘IXAudio27SourceVoice’) #346

Open
opened 2024-05-08 21:45:30 -05:00 by alexhenrie · 1 comment
alexhenrie commented 2024-05-08 21:45:30 -05:00 (Migrated from github.com)

The README says to run make faudio_tests.exe to cross-compile the Windows tests, but when I do that I get:

x86_64-w64-mingw32-gcc -g -Wall -Wall -I/usr/include/wine/windows/ -o faudio_tests.exe xaudio2.c -lole32
xaudio2.c:185:5: error: unknown type name ‘IXAudio27SourceVoice’
  185 |     IXAudio27SourceVoice *xa27src;
      |     ^~~~~~~~~~~~~~~~~~~~

Since commit 14c44d0b0a2 ("xaudio2: Use the preprocessor to modify definitions in xaudio2.idl and xaudio2fx.idl", 2023-04-24), Wine doesn't have an interface named IXAudio27SourceVoice, and as far as I can tell, Windows never had one.

The [README](https://github.com/FNA-XNA/FAudio/blob/97707e9e7ba895a53c31e96c82c06caaf763b31f/README) says to run `make faudio_tests.exe` to cross-compile the Windows tests, but when I do that I get: ``` x86_64-w64-mingw32-gcc -g -Wall -Wall -I/usr/include/wine/windows/ -o faudio_tests.exe xaudio2.c -lole32 xaudio2.c:185:5: error: unknown type name ‘IXAudio27SourceVoice’ 185 | IXAudio27SourceVoice *xa27src; | ^~~~~~~~~~~~~~~~~~~~ ``` Since commit [14c44d0b0a2](https://gitlab.winehq.org/wine/wine/-/commit/14c44d0b0a2fc0ead5bc75615864ff850a44c4d5) ("xaudio2: Use the preprocessor to modify definitions in xaudio2.idl and xaudio2fx.idl", 2023-04-24), Wine doesn't have an interface named IXAudio27SourceVoice, and as far as I can tell, Windows never had one.
flibitijibibo commented 2026-06-23 01:29:32 -05:00 (Migrated from github.com)

If we can get the Wine tests running on GitHub Actions we can treat those as the upstream unit tests:

https://github.com/FNA-XNA/FAudio/tree/test-wine

I don't think we have any unique tests on our end but probably worth checking before deleting the old test folder.

If we can get the Wine tests running on GitHub Actions we can treat those as the upstream unit tests: https://github.com/FNA-XNA/FAudio/tree/test-wine I don't think we have any unique tests on our end but probably worth checking before deleting the old test folder.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-FNA-XNA/FAudio#346
No description provided.