Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Continuing my quest to replace all the bitwise operations on SDL_Audi…
Browse files Browse the repository at this point in the history
…oFormats

 with the new 1.3 macros...
  • Loading branch information
icculus committed Sep 1, 2006
1 parent 9356030 commit 40ccd5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_wave.c
Expand Up @@ -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:
Expand Down

0 comments on commit 40ccd5c

Please sign in to comment.