src/audio/windx5/SDL_dx5audio.c
changeset 2050 bbc89e09503f
parent 2049 5f6550e5184f
child 2051 c03f1446e897
equal deleted inserted replaced
2049:5f6550e5184f 2050:bbc89e09503f
   483      *  audio - it sounds terrible.  Punt for now.
   483      *  audio - it sounds terrible.  Punt for now.
   484      */
   484      */
   485     SDL_memset(&ver, '\0', sizeof (OSVERSIONINFO));
   485     SDL_memset(&ver, '\0', sizeof (OSVERSIONINFO));
   486     ver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
   486     ver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
   487     GetVersionEx(&ver);
   487     GetVersionEx(&ver);
   488     if (ver.dwPlatformId == VER_PLATFORM_WIN32_NT)
   488     if (ver.dwPlatformId == VER_PLATFORM_WIN32_NT) {
   489         if (ver.dwMajorVersion <= 4) {
   489         if (ver.dwMajorVersion <= 4) {
   490             return 0;  /* NT4.0 or earlier. Disable dsound support. */
   490             return 0;  /* NT4.0 or earlier. Disable dsound support. */
   491         }
   491         }
   492     }
   492     }
   493 
   493