mirror of
https://github.com/yawut/SDL.git
synced 2026-09-13 11:36:32 -05:00
Continuing my quest to replace all the bitwise operations on SDL_AudioFormats
with the new 1.3 macros...
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user