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:
parent
85176a8156
commit
b1fe351a51
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
bool OSystem_SDL_Common::set_sound_proc(void *param, SoundProc *proc, byte format) {
|
||||||
SDL_AudioSpec desired;
|
SDL_AudioSpec desired;
|
||||||
|
|
||||||
|
memset(&desired, 0, sizeof(desired));
|
||||||
|
|
||||||
/* only one format supported at the moment */
|
/* only one format supported at the moment */
|
||||||
desired.freq = SAMPLES_PER_SEC;
|
desired.freq = SAMPLES_PER_SEC;
|
||||||
desired.format = AUDIO_S16SYS;
|
desired.format = AUDIO_S16SYS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue