diff src/audio/SDL_audio.c @ 3840:be9bd1067c6c SDL-ryan-multiple-audio-device

Some fixes that were discovered when trying to get OS/2 audio working again...
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 08 Oct 2006 08:58:36 +0000
parents 7c9663fb0860
children ce229f6b5ce0
line wrap: on
line diff
--- a/src/audio/SDL_audio.c	Sun Oct 08 08:57:28 2006 +0000
+++ b/src/audio/SDL_audio.c	Sun Oct 08 08:58:36 2006 +0000
@@ -614,7 +614,7 @@
         for (i = 0; i < SDL_arraysize(open_devices); i++) {
             if ((open_devices[i]) && (open_devices[i]->iscapture)) {
                 SDL_SetError("Audio device already open");
-                return;
+                return 0;
             }
         }
     }
@@ -629,7 +629,7 @@
         for (i = 0; i < SDL_arraysize(open_devices); i++) {
             if ((open_devices[i]) && (!open_devices[i]->iscapture)) {
                 SDL_SetError("Audio device already open");
-                return;
+                return 0;
             }
         }
     }