Patched to compile again (thanks, Rasmus!).
authorRyan C. Gordon <icculus@icculus.org>
Wed, 18 Oct 2006 10:49:23 +0000
changeset 2050bbc89e09503f
parent 2049 5f6550e5184f
child 2051 c03f1446e897
Patched to compile again (thanks, Rasmus!).
src/audio/windib/SDL_dibaudio.c
src/audio/windx5/SDL_dx5audio.c
     1.1 --- a/src/audio/windib/SDL_dibaudio.c	Tue Oct 17 09:15:21 2006 +0000
     1.2 +++ b/src/audio/windib/SDL_dibaudio.c	Wed Oct 18 10:49:23 2006 +0000
     1.3 @@ -205,7 +205,7 @@
     1.4  
     1.5      while ((!valid_datatype) && (test_format)) {
     1.6          valid_datatype = 1;
     1.7 -        _this->spec.format = test_format;
     1.8 +        this->spec.format = test_format;
     1.9          switch (test_format) {
    1.10              case AUDIO_U8:
    1.11              case AUDIO_S16:
    1.12 @@ -287,7 +287,7 @@
    1.13  
    1.14      /* Create the sound buffers */
    1.15      this->hidden->mixbuf = (Uint8 *) SDL_malloc(NUM_BUFFERS * this->spec.size);
    1.16 -    if (mixbuf == NULL) {
    1.17 +    if (this->hidden->mixbuf == NULL) {
    1.18          WINWAVEOUT_CloseDevice(this);
    1.19          SDL_OutOfMemory();
    1.20          return 0;
     2.1 --- a/src/audio/windx5/SDL_dx5audio.c	Tue Oct 17 09:15:21 2006 +0000
     2.2 +++ b/src/audio/windx5/SDL_dx5audio.c	Wed Oct 18 10:49:23 2006 +0000
     2.3 @@ -485,7 +485,7 @@
     2.4      SDL_memset(&ver, '\0', sizeof (OSVERSIONINFO));
     2.5      ver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
     2.6      GetVersionEx(&ver);
     2.7 -    if (ver.dwPlatformId == VER_PLATFORM_WIN32_NT)
     2.8 +    if (ver.dwPlatformId == VER_PLATFORM_WIN32_NT) {
     2.9          if (ver.dwMajorVersion <= 4) {
    2.10              return 0;  /* NT4.0 or earlier. Disable dsound support. */
    2.11          }