aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound
diff options
context:
space:
mode:
authorSven Hesse2009-06-16 20:15:49 +0000
committerSven Hesse2009-06-16 20:15:49 +0000
commitc73f11f0d195f7467cb183b71d3e71ed9495fa9d (patch)
treede2c9c28764841f25fe4a63f2f26ceca1fd2ec8c /engines/gob/sound
parenta2afe557efe5481528e1bb13c2fb4f038e99f9b4 (diff)
downloadscummvm-rg350-c73f11f0d195f7467cb183b71d3e71ed9495fa9d.tar.gz
scummvm-rg350-c73f11f0d195f7467cb183b71d3e71ed9495fa9d.tar.bz2
scummvm-rg350-c73f11f0d195f7467cb183b71d3e71ed9495fa9d.zip
Properly initializing _soundMode, for ADLs too
svn-id: r41591
Diffstat (limited to 'engines/gob/sound')
-rw-r--r--engines/gob/sound/adlib.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/gob/sound/adlib.cpp b/engines/gob/sound/adlib.cpp
index 709025c6d5..b55e9fb0c8 100644
--- a/engines/gob/sound/adlib.cpp
+++ b/engines/gob/sound/adlib.cpp
@@ -53,6 +53,7 @@ AdLib::AdLib(Audio::Mixer &mixer) : _mixer(&mixer) {
_needFree = false;
_mdySong = false;
+ _soundMode = 0;
_repCount = -1;
_samplesTillPoll = 0;
@@ -580,6 +581,8 @@ bool AdLib::load(const char *fileName) {
if (!song.isOpen())
return false;
+ _soundMode = 0;
+
_needFree = true;
_dataSize = song.size();
_data = new byte[_dataSize];
@@ -597,6 +600,8 @@ bool AdLib::load(byte *data, uint32 size, int index) {
unload();
_repCount = 0;
+ _soundMode = 0;
+
_dataSize = size;
_data = data;
_index = index;