fixed valgrind warning (though I don't see why this memset should be needed, after reviewing the SDL_OpenAudio source)

svn-id: r6783
This commit is contained in:
Max Horn 2003-03-09 01:23:40 +00:00
parent 85176a8156
commit b1fe351a51

View file

@ -791,6 +791,8 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
bool OSystem_SDL_Common::set_sound_proc(void *param, SoundProc *proc, byte format) {
SDL_AudioSpec desired;
memset(&desired, 0, sizeof(desired));
/* only one format supported at the moment */
desired.freq = SAMPLES_PER_SEC;
desired.format = AUDIO_S16SYS;