Continuing my quest to replace all the bitwise operations on SDL_AudioFormats

with the new 1.3 macros...
This commit is contained in:
Ryan C. Gordon
2006-09-01 19:16:26 +00:00
parent 0db5f57372
commit d5d4183571

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: