mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
Improved comments.
svn-id: r43619
This commit is contained in:
parent
978d9dfd10
commit
f9fe1cbbcc
@ -645,6 +645,10 @@ void SoundHE::playHESound(int soundID, int heOffset, int heChannel, int heFlags)
|
||||
Audio::AudioStream *voxStream = Audio::makeADPCMStream(&stream, false, size, Audio::kADPCMMSIma, rate, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1, blockAlign);
|
||||
|
||||
sound = (char *)malloc(size * 4);
|
||||
/* On systems where it matters, malloc will return
|
||||
* even addresses, so the use of (void *) in the
|
||||
* following cast shuts the compiler from warning
|
||||
* unnecessarily. */
|
||||
size = voxStream->readBuffer((int16*)(void *)sound, size * 2);
|
||||
size *= 2; // 16bits.
|
||||
delete voxStream;
|
||||
|
Loading…
x
Reference in New Issue
Block a user