Mercurial > SDL_sound_CoreAudio
diff playsound/playsound.c @ 409:0dbf37be0a5a
Valgrind cleanups.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 29 Jul 2002 22:36:21 +0000 |
parents | 325af3e2cbb3 |
children | 50bb9a6cebfe |
line wrap: on
line diff
--- a/playsound/playsound.c Mon Jul 29 07:50:29 2002 +0000 +++ b/playsound/playsound.c Mon Jul 29 22:36:21 2002 +0000 @@ -734,7 +734,6 @@ { Sound_AudioInfo sound_desired; SDL_AudioSpec sdl_desired; - SDL_AudioSpec sdl_actual; Uint32 audio_buffersize; Uint32 decode_buffersize; Sound_Sample *sample; @@ -837,6 +836,7 @@ free((void *) global_state.seek_list); memset((void *) &global_state, '\0', sizeof (global_state)); + memset(&sdl_desired, '\0', sizeof (SDL_AudioSpec)); global_state.volume = 1.0; global_state.bytes_before_next_seek = -1; audio_buffersize = DEFAULT_AUDIOBUF;