From 648d2a839d1c4dae22a20393280b7f1c5a4d6bcf 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... --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402059 --- 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: