changeset 311:d62c05322a3e

Logic fixes from Torbj�rn.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 24 Apr 2002 20:46:39 +0000
parents 9e21cb0d3ae7
children 498240aa76f1
files SDL_sound.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/SDL_sound.c	Wed Apr 24 20:01:20 2002 +0000
+++ b/SDL_sound.c	Wed Apr 24 20:46:39 2002 +0000
@@ -780,7 +780,7 @@
     assert(internal->buffer_size > 0);
 
         /* reset EAGAIN. Decoder can flip it back on if it needs to. */
-    sample->flags &= !SOUND_SAMPLEFLAG_EAGAIN;
+    sample->flags &= ~SOUND_SAMPLEFLAG_EAGAIN;
     retval = internal->funcs->read(sample);
 
     if (retval > 0 && internal->sdlcvt.needed)
@@ -853,9 +853,9 @@
         return(0);
     } /* if */
 
-    sample->flags &= !SOUND_SAMPLEFLAG_EAGAIN;
-    sample->flags &= !SOUND_SAMPLEFLAG_ERROR;
-    sample->flags &= !SOUND_SAMPLEFLAG_EOF;
+    sample->flags &= ~SOUND_SAMPLEFLAG_EAGAIN;
+    sample->flags &= ~SOUND_SAMPLEFLAG_ERROR;
+    sample->flags &= ~SOUND_SAMPLEFLAG_EOF;
 
     return(1);
 } /* Sound_Rewind */
@@ -872,9 +872,9 @@
     internal = (Sound_SampleInternal *) sample->opaque;
     BAIL_IF_MACRO(!internal->funcs->seek(sample, ms), NULL, 0);
 
-    sample->flags &= !SOUND_SAMPLEFLAG_EAGAIN;
-    sample->flags &= !SOUND_SAMPLEFLAG_ERROR;
-    sample->flags &= !SOUND_SAMPLEFLAG_EOF;
+    sample->flags &= ~SOUND_SAMPLEFLAG_EAGAIN;
+    sample->flags &= ~SOUND_SAMPLEFLAG_ERROR;
+    sample->flags &= ~SOUND_SAMPLEFLAG_EOF;
 
     return(1);
 } /* Sound_Rewind */