src/audio/SDL_audio.c
changeset 7345 0021ad840cdd
parent 7342 4828e86c6010
child 7348 50b6e7a26ba3
equal deleted inserted replaced
7344:3d9397262c10 7345:0021ad840cdd
  1170 }
  1170 }
  1171 
  1171 
  1172 void
  1172 void
  1173 SDL_AudioQuit(void)
  1173 SDL_AudioQuit(void)
  1174 {
  1174 {
       
  1175     if (!current_audio.name) {  /* not initialized?! */
       
  1176         return;
       
  1177     }
       
  1178 
  1175     SDL_AudioDeviceID i;
  1179     SDL_AudioDeviceID i;
  1176     for (i = 0; i < SDL_arraysize(open_devices); i++) {
  1180     for (i = 0; i < SDL_arraysize(open_devices); i++) {
  1177         if (open_devices[i] != NULL) {
  1181         if (open_devices[i] != NULL) {
  1178             SDL_CloseAudioDevice(i);
  1182             SDL_CloseAudioDevice(i);
  1179         }
  1183         }