aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMax Horn2003-12-26 13:14:03 +0000
committerMax Horn2003-12-26 13:14:03 +0000
commit692fca88c2564d78b364ed13d98e8e9d4b3a424e (patch)
tree185b124e51dc0df3ad882dfd2aa2950bb8a7b005 /sound
parentaa26fa0681ebd871ff976e6aec4d112eb9b21a19 (diff)
downloadscummvm-rg350-692fca88c2564d78b364ed13d98e8e9d4b3a424e.tar.gz
scummvm-rg350-692fca88c2564d78b364ed13d98e8e9d4b3a424e.tar.bz2
scummvm-rg350-692fca88c2564d78b364ed13d98e8e9d4b3a424e.zip
fix warning, add TODO comment
svn-id: r11942
Diffstat (limited to 'sound')
-rw-r--r--sound/voc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/voc.cpp b/sound/voc.cpp
index 7951d72633..2fc77e6781 100644
--- a/sound/voc.cpp
+++ b/sound/voc.cpp
@@ -83,6 +83,10 @@ enum {
SOUND_HEADER_BIG_SIZE = 26 + 8
};
+// FIXME/TODO: loadVocSample() essentially duplicates all the code from
+// readCreativeVoc(). Obviously this is bad, it should rather use that function
+// (after some tweaks to readCreativeVoc, to deal with the alternate VTLK
+// header).
byte *loadVocSample(File *file, int32 &size, int &rate) {
char ident[8];
@@ -121,7 +125,7 @@ byte *loadVocSample(File *file, int32 &size, int &rate) {
error("loadVocSample: out of memory");
}
- if (file->read(data, size) != size) {
+ if ((int)file->read(data, size) != size) {
/* no need to free the memory since error will shut down */
error("startSfxSound: cannot read %d bytes", size);
}