src/audio/SDL_wave.c
changeset 2012 575d5c9d4db8
parent 1994 6abc7e6f9817
child 2669 e27bdcc80744
--- a/src/audio/SDL_wave.c	Fri Sep 01 18:07:41 2006 +0000
+++ b/src/audio/SDL_wave.c	Fri Sep 01 19:16:26 2006 +0000
@@ -582,7 +582,7 @@
     }
 
     /* Don't return a buffer that isn't a multiple of samplesize */
-    samplesize = ((spec->format & 0xFF) / 8) * spec->channels;
+    samplesize = ((SDL_AUDIO_BITSIZE(spec->format)) / 8) * spec->channels;
     *audio_len &= ~(samplesize - 1);
 
   done: