Updated Windows build to support SDL 2.0.8.

This commit is contained in:
Stephen Anthony 2018-03-24 14:47:18 -02:30
parent 2949821814
commit 524cec907a
2 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,8 @@
* Fixed bug in UI navigation with joystick hat movement.
* Updated version of SDL included with the Windows build to 2.0.8.
-Have fun!

View File

@ -46,6 +46,13 @@ SoundSDL2::SoundSDL2(OSystem& osystem)
{
myOSystem.logMessage("SoundSDL2::SoundSDL2 started ...", 2);
#ifdef BSPF_WINDOWS
// TODO - remove the following code once we convert to the new sound
// core, and use 32-bit floating point samples and do
// our own resampling
SDL_setenv("SDL_AUDIODRIVER", "directsound", true);
#endif
// The sound system is opened only once per program run, to eliminate
// issues with opening and closing it multiple times
// This fixes a bug most prevalent with ATI video cards in Windows,