diff src/audio/windib/SDL_dibaudio.c @ 2050:bbc89e09503f

Patched to compile again (thanks, Rasmus!).
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 18 Oct 2006 10:49:23 +0000
parents 5f6550e5184f
children 866052b01ee5
line wrap: on
line diff
--- a/src/audio/windib/SDL_dibaudio.c	Tue Oct 17 09:15:21 2006 +0000
+++ b/src/audio/windib/SDL_dibaudio.c	Wed Oct 18 10:49:23 2006 +0000
@@ -205,7 +205,7 @@
 
     while ((!valid_datatype) && (test_format)) {
         valid_datatype = 1;
-        _this->spec.format = test_format;
+        this->spec.format = test_format;
         switch (test_format) {
             case AUDIO_U8:
             case AUDIO_S16:
@@ -287,7 +287,7 @@
 
     /* Create the sound buffers */
     this->hidden->mixbuf = (Uint8 *) SDL_malloc(NUM_BUFFERS * this->spec.size);
-    if (mixbuf == NULL) {
+    if (this->hidden->mixbuf == NULL) {
         WINWAVEOUT_CloseDevice(this);
         SDL_OutOfMemory();
         return 0;