Continuing my quest to replace all the bitwise operations on SDL_AudioFormats
authorRyan C. Gordon
Fri, 01 Sep 2006 19:16:26 +0000
changeset 2012575d5c9d4db8
parent 2011 b2b7154ce016
child 2013 0615fa58c0be
Continuing my quest to replace all the bitwise operations on SDL_AudioFormats
with the new 1.3 macros...
src/audio/SDL_wave.c
     1.1 --- a/src/audio/SDL_wave.c	Fri Sep 01 18:07:41 2006 +0000
     1.2 +++ b/src/audio/SDL_wave.c	Fri Sep 01 19:16:26 2006 +0000
     1.3 @@ -582,7 +582,7 @@
     1.4      }
     1.5  
     1.6      /* Don't return a buffer that isn't a multiple of samplesize */
     1.7 -    samplesize = ((spec->format & 0xFF) / 8) * spec->channels;
     1.8 +    samplesize = ((SDL_AUDIO_BITSIZE(spec->format)) / 8) * spec->channels;
     1.9      *audio_len &= ~(samplesize - 1);
    1.10  
    1.11    done: