[Scummvm-cvs-logs] scummvm master -> 38c259b14837d8302f0b7b6df572ddbfa9cb319f
digitall
dgturner at iee.org
Wed Oct 9 03:16:44 CEST 2013
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
be2f292457 SCUMM: Fix unused variable warnings
38c259b148 Merge pull request #405 from rrebello/scumm_warning_fix
Commit: be2f292457607921d60355ac21dbeddaf30584da
https://github.com/scummvm/scummvm/commit/be2f292457607921d60355ac21dbeddaf30584da
Author: Rodrigo Rebello (rprebello at gmail.com)
Date: 2013-10-02T21:47:02-07:00
Commit Message:
SCUMM: Fix unused variable warnings
Changed paths:
engines/scumm/imuse_digi/dimuse_sndmgr.cpp
engines/scumm/sound.cpp
diff --git a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp
index abd0d68..af4f877 100644
--- a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp
+++ b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp
@@ -667,15 +667,18 @@ int32 ImuseDigiSndMgr::getDataFromRegion(SoundDesc *soundDesc, int region, byte
if (scumm_stricmp(fileName, soundDesc->lastFileName) != 0) {
int32 offs = 0, len = 0;
Common::SeekableReadStream *cmpFile;
+#if defined(USE_FLAC) || defined(USE_VORBIS) || defined(USE_MAD)
uint8 soundMode = 0;
+#endif
sprintf(fileName, "%s_reg%03d.fla", soundDesc->name, region);
cmpFile = soundDesc->bundle->getFile(fileName, offs, len);
if (len) {
#ifndef USE_FLAC
error("FLAC library compiled support needed");
-#endif
+#else
soundMode = 3;
+#endif
}
if (!len) {
sprintf(fileName, "%s_reg%03d.ogg", soundDesc->name, region);
@@ -683,8 +686,9 @@ int32 ImuseDigiSndMgr::getDataFromRegion(SoundDesc *soundDesc, int region, byte
if (len) {
#ifndef USE_VORBIS
error("Vorbis library compiled support needed");
-#endif
+#else
soundMode = 2;
+#endif
}
}
if (!len) {
@@ -693,8 +697,9 @@ int32 ImuseDigiSndMgr::getDataFromRegion(SoundDesc *soundDesc, int region, byte
if (len) {
#ifndef USE_MAD
error("Mad library compiled support needed");
-#endif
+#else
soundMode = 1;
+#endif
}
}
assert(len);
diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp
index 5e5e804..aaf7f90 100644
--- a/engines/scumm/sound.cpp
+++ b/engines/scumm/sound.cpp
@@ -470,8 +470,10 @@ static int compareMP3OffsetTable(const void *a, const void *b) {
void Sound::startTalkSound(uint32 offset, uint32 b, int mode, Audio::SoundHandle *handle) {
int num = 0, i;
- int size = 0;
int id = -1;
+#if defined(USE_FLAC) || defined(USE_VORBIS) || defined(USE_MAD)
+ int size = 0;
+#endif
Common::ScopedPtr<ScummFile> file;
if (_vm->_game.id == GID_CMI) {
@@ -562,10 +564,14 @@ void Sound::startTalkSound(uint32 offset, uint32 b, int mode, Audio::SoundHandle
num = result->num_tags;
}
offset = result->new_offset;
+#if defined(USE_FLAC) || defined(USE_VORBIS) || defined(USE_MAD)
size = result->compressed_size;
+#endif
} else {
offset += 8;
+#if defined(USE_FLAC) || defined(USE_VORBIS) || defined(USE_MAD)
size = -1;
+#endif
}
file.reset(new ScummFile());
Commit: 38c259b14837d8302f0b7b6df572ddbfa9cb319f
https://github.com/scummvm/scummvm/commit/38c259b14837d8302f0b7b6df572ddbfa9cb319f
Author: David Turner (dgturner at iee.org)
Date: 2013-10-08T18:16:21-07:00
Commit Message:
Merge pull request #405 from rrebello/scumm_warning_fix
SCUMM: Fix unused variable warnings
Changed paths:
engines/scumm/imuse_digi/dimuse_sndmgr.cpp
engines/scumm/sound.cpp
More information about the Scummvm-git-logs
mailing list