aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-02-15 10:32:55 +0000
committerTorbjörn Andersson2005-02-15 10:32:55 +0000
commitd1f6a405830b5f55e6573637e13b6e50aa8ecfc7 (patch)
treecd02460290e304faeb72d7f59cee6d5b4c7187cc /scumm
parente3ed9f7b3200709399c73d87035533f602842b0e (diff)
downloadscummvm-rg350-d1f6a405830b5f55e6573637e13b6e50aa8ecfc7.tar.gz
scummvm-rg350-d1f6a405830b5f55e6573637e13b6e50aa8ecfc7.tar.bz2
scummvm-rg350-d1f6a405830b5f55e6573637e13b6e50aa8ecfc7.zip
Re-phrased comment to make it sound more like the fact it is and less like
a "FIXME". svn-id: r16797
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 5ba1446ff9..2b24f1694d 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -235,7 +235,7 @@ void Sound::playSound(int soundID, int heOffset, int heChannel, int heFlags) {
return;
}
- // This pointer needs to be freed
+ // This pointer will be freed at the end of the function
mallocedPtr = ptr;
} else {
debugC(DEBUG_SOUND, "playSound #%d (room %d)", soundID,
@@ -509,7 +509,7 @@ void Sound::playSound(int soundID, int heOffset, int heChannel, int heFlags) {
rate = 3579545 / READ_BE_UINT16(ptr + 20);
sound = (char *)malloc(size);
int vol = ptr[24] * 4;
- memcpy(sound,ptr + READ_BE_UINT16(ptr + 8), size);
+ memcpy(sound, ptr + READ_BE_UINT16(ptr + 8), size);
_vm->_mixer->playRaw(NULL, sound, size, rate, SoundMixer::FLAG_AUTOFREE, soundID, vol, 0);
}
else {