src/audio/arts/SDL_artsaudio.c
changeset 9393 ed79a66e57e5
parent 8149 681eb46b8ac4
child 9394 bb28e5281770
--- a/src/audio/arts/SDL_artsaudio.c	Wed Mar 18 10:09:39 2015 -0400
+++ b/src/audio/arts/SDL_artsaudio.c	Mon Mar 16 02:11:39 2015 -0400
@@ -151,7 +151,7 @@
         /* Check every 10 loops */
         if (this->hidden->parent && (((++cnt) % 10) == 0)) {
             if (kill(this->hidden->parent, 0) < 0 && errno == ESRCH) {
-                this->enabled = 0;
+                SDL_AudioDeviceDisconnected(SDL_FALSE, this);
             }
         }
     }
@@ -179,7 +179,7 @@
 
     /* If we couldn't write, assume fatal error for now */
     if (written < 0) {
-        this->enabled = 0;
+        SDL_AudioDeviceDisconnected(SDL_FALSE, this);
     }
 #ifdef DEBUG_AUDIO
     fprintf(stderr, "Wrote %d bytes of audio data\n", written);