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
This commit is contained in:
Ryan C. Gordon 2006-09-01 19:16:26 +00:00
parent f3acf2d311
commit 648d2a839d

View file

@ -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: