diff decoders/raw.c @ 387:fb519e6028e3

Changed all the Sound_SetError() calls to __Sound_SetError (or BAIL*_MACRO)
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 05 Jul 2002 23:11:51 +0000
parents cbb15ecf423a
children c66080364dff 50bb9a6cebfe
line wrap: on
line diff
--- a/decoders/raw.c	Fri Jul 05 22:34:55 2002 +0000
+++ b/decoders/raw.c	Fri Jul 05 23:11:51 2002 +0000
@@ -100,10 +100,7 @@
          *  determine whether we should handle this data or not.
          */
     if (__Sound_strcasecmp(ext, "RAW") != 0)
-    {
-        Sound_SetError("RAW: extension isn't explicitly \"RAW\".");
-        return(0);
-    } /* if */
+        BAIL_MACRO("RAW: extension isn't explicitly \"RAW\".", 0);
 
         /*
          * You must also specify a desired format, so we know how to
@@ -114,8 +111,7 @@
          (sample->desired.rate == 0)     ||
          (sample->desired.format == 0) )
     {
-        Sound_SetError("RAW: invalid desired format.");
-        return(0);
+        BAIL_MACRO("RAW: invalid desired format.", 0);
     } /* if */
 
     SNDDBG(("RAW: Accepting data stream.\n"));