src/audio/xaudio2/SDL_xaudio2.c
changeset 6352 a9bcd26e7105
parent 6161 84e12f37b20c
child 6885 700f1b25f77f
child 8353 82447809a27e
equal deleted inserted replaced
6351:8f5535d05e34 6352:a9bcd26e7105
   330         XAUDIO2_CloseDevice(this);
   330         XAUDIO2_CloseDevice(this);
   331         SDL_OutOfMemory();
   331         SDL_OutOfMemory();
   332         return 0;
   332         return 0;
   333     }
   333     }
   334     this->hidden->nextbuf = this->hidden->mixbuf;
   334     this->hidden->nextbuf = this->hidden->mixbuf;
   335     SDL_memset(this->hidden->mixbuf, '\0', 2 * this->hidden->mixlen);
   335     SDL_memset(this->hidden->mixbuf, 0, 2 * this->hidden->mixlen);
   336 
   336 
   337     /* We use XAUDIO2_DEFAULT_CHANNELS instead of this->spec.channels. On
   337     /* We use XAUDIO2_DEFAULT_CHANNELS instead of this->spec.channels. On
   338        Xbox360, this means 5.1 output, but on Windows, it means "figure out
   338        Xbox360, this means 5.1 output, but on Windows, it means "figure out
   339        what the system has." It might be preferable to let XAudio2 blast
   339        what the system has." It might be preferable to let XAudio2 blast
   340        stereo output to appropriate surround sound configurations
   340        stereo output to appropriate surround sound configurations