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:
parent
f3acf2d311
commit
648d2a839d
1 changed files with 1 additions and 1 deletions
|
@ -582,7 +582,7 @@ SDL_LoadWAV_RW(SDL_RWops * src, int freesrc,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't return a buffer that isn't a multiple of samplesize */
|
/* 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);
|
*audio_len &= ~(samplesize - 1);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue