diff SDL_sound.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 ce998ee6194f
children 9d0b5ec9cc26
line wrap: on
line diff
--- a/SDL_sound.c	Fri Jul 05 22:34:55 2002 +0000
+++ b/SDL_sound.c	Fri Jul 05 23:11:51 2002 +0000
@@ -358,7 +358,7 @@
     if (str == NULL)
         return;
 
-    SNDDBG(("Sound_SetError(\"%s\");%s\n", str,
+    SNDDBG(("__Sound_SetError(\"%s\");%s\n", str,
               (initialized) ? "" : " [NOT INITIALIZED!]"));
 
     if (!initialized)
@@ -444,7 +444,7 @@
     Sound_SampleInternal *internal = malloc(sizeof (Sound_SampleInternal));
     if ((retval == NULL) || (internal == NULL))
     {
-        Sound_SetError(ERR_OUT_OF_MEMORY);
+        __Sound_SetError(ERR_OUT_OF_MEMORY);
         if (retval)
             free(retval);
         if (internal)
@@ -460,7 +460,7 @@
     retval->buffer = malloc(bufferSize);  /* pure ugly. */
     if (!retval->buffer)
     {
-        Sound_SetError(ERR_OUT_OF_MEMORY);
+        __Sound_SetError(ERR_OUT_OF_MEMORY);
         free(internal);
         free(retval);
         return(NULL);
@@ -549,7 +549,7 @@
                             desired.rate,
                             sample->buffer_size) == -1)
     {
-        Sound_SetError(SDL_GetError());
+        __Sound_SetError(SDL_GetError());
         funcs->close(sample);
         SDL_RWseek(internal->rw, pos, SEEK_SET);  /* set for next try... */
         return(0);
@@ -668,7 +668,7 @@
         free(retval->buffer);
     free(retval);
     SDL_RWclose(rw);
-    Sound_SetError(ERR_UNSUPPORTED_FORMAT);
+    __Sound_SetError(ERR_UNSUPPORTED_FORMAT);
     return(NULL);
 } /* Sound_NewSample */
 
@@ -700,13 +700,13 @@
 
     if (!initialized)
     {
-        Sound_SetError(ERR_NOT_INITIALIZED);
+        __Sound_SetError(ERR_NOT_INITIALIZED);
         return;
     } /* if */
 
     if (sample == NULL)
     {
-        Sound_SetError(ERR_INVALID_ARGUMENT);
+        __Sound_SetError(ERR_INVALID_ARGUMENT);
         return;
     } /* if */
 
@@ -827,7 +827,7 @@
         if (ptr == NULL)
         {
             sample->flags |= SOUND_SAMPLEFLAG_ERROR;
-            Sound_SetError(ERR_OUT_OF_MEMORY);
+            __Sound_SetError(ERR_OUT_OF_MEMORY);
         } /* if */
         else
         {