| Summary: | [Patch] Suggestion: Allow to turn off WASAPI build without post-configure patching of SDL_config.h | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Vitaly Novichkov <admin> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | icculus, olav.sorensen, sezeroz |
| Version: | HG 2.1 | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
| Attachments: |
Added option ENABLE_WASAPI_SUPPORT into CMakeLists.txt
configurable wasapi patch |
||
|
Description
Vitaly Novichkov
2017-09-05 22:10:04 UTC
Created attachment 3153 [details]
Added option ENABLE_WASAPI_SUPPORT into CMakeLists.txt
This option is enabled by default. Disabling of this option will turn off WASAPI build even it is available in the system.
We should have this cmake option in any case, but is WASAPI still laggy and glitchy in the latest SDL revision? We made some fixes to it right before Christmas. --ryan. In most case it is no more glitchy, but: - on Windows 7 (on Windows 10 is NO SOUND, I already reported that) - until you will pass through it an output of powerful codec like libADLMIDI produces a choppy output. - when the built application is running on Wine with turned on "Windows 7" mode (with "Windows XP" mode the playback is fine as it doesn't use WASAPI). The libADLMIDI itself to reproduce the issue with WASAPI: https://github.com/Wohlstand/libADLMIDI Built it with "-DCMAKE_BUILD_TYPE=Debug -DWITH_MIDIPLAY=ON" to build a library and the demo player and also in the debug mode. The static-only assembly is needed. To use the player is easy: just pass through its command line argument any MIDI-file you have around of your hands, even use one of M$'s from %WinDir%/media folder. It still is glitchy on some machines. You get symptoms that sounds like a buffer underrun issue, while making the buffer size higher changes nothing. Does the audio buffer size code handling work correctly at all? Created attachment 3266 [details]
configurable wasapi patch
I have this attached patch, will apply it shortly.
Should be fixed by https://hg.libsdl.org/SDL/rev/e604fe493d45 Finally! Thanks a lot! :3 |