src/audio/winmm/SDL_winmm.c
changeset 6352 a9bcd26e7105
parent 6138 4c64952a58fb
child 6430 48d519500f7e
equal deleted inserted replaced
6351:8f5535d05e34 6352:a9bcd26e7105
   367         WINMM_CloseDevice(this);
   367         WINMM_CloseDevice(this);
   368         SDL_OutOfMemory();
   368         SDL_OutOfMemory();
   369         return 0;
   369         return 0;
   370     }
   370     }
   371     for (i = 0; i < NUM_BUFFERS; ++i) {
   371     for (i = 0; i < NUM_BUFFERS; ++i) {
   372         SDL_memset(&this->hidden->wavebuf[i], '\0',
   372         SDL_memset(&this->hidden->wavebuf[i], 0,
   373                    sizeof(this->hidden->wavebuf[i]));
   373                    sizeof(this->hidden->wavebuf[i]));
   374         this->hidden->wavebuf[i].dwBufferLength = this->spec.size;
   374         this->hidden->wavebuf[i].dwBufferLength = this->spec.size;
   375         this->hidden->wavebuf[i].dwFlags = WHDR_DONE;
   375         this->hidden->wavebuf[i].dwFlags = WHDR_DONE;
   376         this->hidden->wavebuf[i].lpData =
   376         this->hidden->wavebuf[i].lpData =
   377             (LPSTR) & this->hidden->mixbuf[i * this->spec.size];
   377             (LPSTR) & this->hidden->mixbuf[i * this->spec.size];