src/audio/disk/SDL_diskaudio.c
changeset 1539 84535f702874
parent 1465 8dfa9a6d69a5
child 1594 c439dad53df8
equal deleted inserted replaced
1538:b1f8c14f0df5 1539:84535f702874
   131 	written = SDL_RWwrite(this->hidden->output,
   131 	written = SDL_RWwrite(this->hidden->output,
   132                         this->hidden->mixbuf, 1,
   132                         this->hidden->mixbuf, 1,
   133                         this->hidden->mixlen);
   133                         this->hidden->mixlen);
   134 
   134 
   135 	/* If we couldn't write, assume fatal error for now */
   135 	/* If we couldn't write, assume fatal error for now */
   136 	if ( written != this->hidden->mixlen ) {
   136 	if ( (Uint32)written != this->hidden->mixlen ) {
   137 		this->enabled = 0;
   137 		this->enabled = 0;
   138 	}
   138 	}
   139 #ifdef DEBUG_AUDIO
   139 #ifdef DEBUG_AUDIO
   140 	fprintf(stderr, "Wrote %d bytes of audio data\n", written);
   140 	fprintf(stderr, "Wrote %d bytes of audio data\n", written);
   141 #endif
   141 #endif