Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed off-by-one error in SDL_AudioQuit() (thanks, Rainer!).

Audio Devices IDs are offset by one.

Fixes Bugzilla #1971.
  • Loading branch information
icculus committed Jul 14, 2013
1 parent 4c2f62f commit e4a866c874b1b367c1ad9158894eaaaeedfa2b7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/audio/SDL_audio.c
@@ -1184,7 +1184,7 @@ SDL_AudioQuit(void)

for (i = 0; i < SDL_arraysize(open_devices); i++) {
if (open_devices[i] != NULL) {
SDL_CloseAudioDevice(i);
SDL_CloseAudioDevice(i+1);
}
}

0 comments on commit e4a866c

Please sign in to comment.