src/audio/winmm/SDL_winmm.c
changeset 12968 0e3948762c96
parent 12503 806492103856
equal deleted inserted replaced
12966:0262d439e9c6 12968:0e3948762c96
   385         (Uint8 *) SDL_malloc(NUM_BUFFERS * this->spec.size);
   385         (Uint8 *) SDL_malloc(NUM_BUFFERS * this->spec.size);
   386     if (this->hidden->mixbuf == NULL) {
   386     if (this->hidden->mixbuf == NULL) {
   387         return SDL_OutOfMemory();
   387         return SDL_OutOfMemory();
   388     }
   388     }
   389 
   389 
   390     SDL_zero(this->hidden->wavebuf);
   390     SDL_zeroa(this->hidden->wavebuf);
   391     for (i = 0; i < NUM_BUFFERS; ++i) {
   391     for (i = 0; i < NUM_BUFFERS; ++i) {
   392         this->hidden->wavebuf[i].dwBufferLength = this->spec.size;
   392         this->hidden->wavebuf[i].dwBufferLength = this->spec.size;
   393         this->hidden->wavebuf[i].dwFlags = WHDR_DONE;
   393         this->hidden->wavebuf[i].dwFlags = WHDR_DONE;
   394         this->hidden->wavebuf[i].lpData =
   394         this->hidden->wavebuf[i].lpData =
   395             (LPSTR) & this->hidden->mixbuf[i * this->spec.size];
   395             (LPSTR) & this->hidden->mixbuf[i * this->spec.size];