Fixed off-by-one error in SDL_AudioQuit() (thanks, Rainer!).
Audio Devices IDs are offset by one. Fixes Bugzilla #1971.
This commit is contained in:
parent
a05aecab3b
commit
e5c1f21fae
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue