Mercurial > sdl-ios-xcode
diff src/audio/SDL_audio.c @ 3787:8d74a4721ca9 SDL-ryan-multiple-audio-device
Added deinitialize hook.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 03 Oct 2006 16:26:42 +0000 |
parents | b70f4e9291bb |
children | 7006b176ef4f |
line wrap: on
line diff
--- a/src/audio/SDL_audio.c Tue Oct 03 16:02:08 2006 +0000 +++ b/src/audio/SDL_audio.c Tue Oct 03 16:26:42 2006 +0000 @@ -442,6 +442,7 @@ current_audio.impl.LockAudio = SDL_LockAudio_Default; current_audio.impl.UnlockAudio = SDL_UnlockAudio_Default; } + return (0); } @@ -851,9 +852,9 @@ for (i = 0; i < SDL_arraysize(open_devices); i++) { SDL_CloseAudioDevice(i); } + /* Free the driver data */ - -/* !!! FIXME! current_audio.free(¤t_audio); */ + current_audio.Deinitialize(); SDL_memset(¤t_audio, '\0', sizeof (current_audio)); SDL_memset(open_devices, '\0', sizeof (open_devices)); }