comparison src/audio/disk/SDL_diskaudio.c @ 3253:5d7ef5970073

Fixed issues building 64-bit Windows binary
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Sep 2009 23:37:35 +0000
parents 99210400e8b9
children f7b03b6838cb
comparison
equal deleted inserted replaced
3252:d2465e21f103 3253:5d7ef5970073
65 } 65 }
66 66
67 static void 67 static void
68 DISKAUD_PlayDevice(_THIS) 68 DISKAUD_PlayDevice(_THIS)
69 { 69 {
70 int written; 70 size_t written;
71 71
72 /* Write the audio data */ 72 /* Write the audio data */
73 written = SDL_RWwrite(this->hidden->output, 73 written = SDL_RWwrite(this->hidden->output,
74 this->hidden->mixbuf, 1, this->hidden->mixlen); 74 this->hidden->mixbuf, 1, this->hidden->mixlen);
75 75
76 /* If we couldn't write, assume fatal error for now */ 76 /* If we couldn't write, assume fatal error for now */
77 if ((Uint32) written != this->hidden->mixlen) { 77 if (written != this->hidden->mixlen) {
78 this->enabled = 0; 78 this->enabled = 0;
79 } 79 }
80 #ifdef DEBUG_AUDIO 80 #ifdef DEBUG_AUDIO
81 fprintf(stderr, "Wrote %d bytes of audio data\n", written); 81 fprintf(stderr, "Wrote %d bytes of audio data\n", written);
82 #endif 82 #endif