From 40ccd5c36b272925929c778e8e49b22c98f4f0d6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 1 Sep 2006 19:16:26 +0000 Subject: [PATCH] Continuing my quest to replace all the bitwise operations on SDL_AudioFormats with the new 1.3 macros... --- src/audio/SDL_wave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/SDL_wave.c b/src/audio/SDL_wave.c index 3bc9fdf3f..630209ee6 100644 --- a/src/audio/SDL_wave.c +++ b/src/audio/SDL_wave.c @@ -582,7 +582,7 @@ SDL_LoadWAV_RW(SDL_RWops * src, int freesrc, } /* 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: