changeset 2012:575d5c9d4db8

Continuing my quest to replace all the bitwise operations on SDL_AudioFormats with the new 1.3 macros...
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 01 Sep 2006 19:16:26 +0000
parents b2b7154ce016
children 0615fa58c0be
files src/audio/SDL_wave.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: