Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Continuing my quest to replace all the bitwise operations on SDL_Audi…

…oFormats

 with the new 1.3 macros...
  • Loading branch information
icculus committed Sep 1, 2006
1 parent 9356030 commit 40ccd5c36b272925929c778e8e49b22c98f4f0d6
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit 40ccd5c

Please sign in to comment.