aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/sound.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-10-22 20:43:22 -0400
committerPaul Gilbert2014-10-22 20:43:22 -0400
commitc021759ad2f0fdb723f98a62739bdf6d5de9c350 (patch)
treedef5ba8229508990024b6bf5e662f6fe5f812fbd /engines/mads/sound.cpp
parent1860c2107adb4d08ce6d5a360b47bf5c19392713 (diff)
downloadscummvm-rg350-c021759ad2f0fdb723f98a62739bdf6d5de9c350.tar.gz
scummvm-rg350-c021759ad2f0fdb723f98a62739bdf6d5de9c350.tar.bz2
scummvm-rg350-c021759ad2f0fdb723f98a62739bdf6d5de9c350.zip
MADS: Add md5 checks for the asound.00* sound drivers
The implementation of the sound driver code relies on the data for each sound being at specific locations in the files, so this ensures that if any language version changes the sound files, we'll know about it
Diffstat (limited to 'engines/mads/sound.cpp')
-rw-r--r--engines/mads/sound.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mads/sound.cpp b/engines/mads/sound.cpp
index d0aa770a4d..1652550ba3 100644
--- a/engines/mads/sound.cpp
+++ b/engines/mads/sound.cpp
@@ -39,6 +39,15 @@ SoundManager::SoundManager(MADSEngine *vm, Audio::Mixer *mixer) {
_opl = OPL::Config::create();
_opl->init(11025);
+
+ // Validate sound files
+ switch (_vm->getGameID()) {
+ case GType_RexNebular:
+ Nebular::ASound::validate();
+ break;
+ default:
+ break;
+ }
}
SoundManager::~SoundManager() {