Fixed off-by-one error in SDL_AudioQuit() (thanks, Rainer!).
authorRyan C. Gordon
Sun, 14 Jul 2013 11:28:18 -0400
changeset 74466cbb6aaedc20
parent 7445 bf50f0b74811
child 7447 6860de5bcb8c
Fixed off-by-one error in SDL_AudioQuit() (thanks, Rainer!).

Audio Devices IDs are offset by one.

Fixes Bugzilla #1971.
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Sun Jul 14 14:32:26 2013 +0200
     1.2 +++ b/src/audio/SDL_audio.c	Sun Jul 14 11:28:18 2013 -0400
     1.3 @@ -1184,7 +1184,7 @@
     1.4  
     1.5      for (i = 0; i < SDL_arraysize(open_devices); i++) {
     1.6          if (open_devices[i] != NULL) {
     1.7 -            SDL_CloseAudioDevice(i);
     1.8 +            SDL_CloseAudioDevice(i+1);
     1.9          }
    1.10      }
    1.11