aboutsummaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
authorJames Brown2002-03-26 05:22:07 +0000
committerJames Brown2002-03-26 05:22:07 +0000
commit2c3657168f7ee5330688b005c1573daddeac9047 (patch)
tree42ded9d30f8027cabeca56f93d7cfa284ac14296 /init.cpp
parent71be0400dc3d243b6854e36d16d30d151aa4fc2c (diff)
downloadscummvm-rg350-2c3657168f7ee5330688b005c1573daddeac9047.tar.gz
scummvm-rg350-2c3657168f7ee5330688b005c1573daddeac9047.tar.bz2
scummvm-rg350-2c3657168f7ee5330688b005c1573daddeac9047.zip
Fix sound under VC++ debug. Actor masks, actor animation and talking are still broken. Help. someone? Anyone?
svn-id: r3834
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/init.cpp b/init.cpp
index dc0bfbaabd..092eeeba2c 100644
--- a/init.cpp
+++ b/init.cpp
@@ -107,6 +107,8 @@ Scumm::Scumm(void)
_soundParam = 0;
_soundParam2 = 0;
_soundParam3 = 0;
+ _soundsPaused = 0;
+ _soundsPaused2 = 0;
current_cd_sound = 0;
num_sound_effects = 0;
_noSubtitles = 0;
@@ -149,6 +151,24 @@ Scumm::Scumm(void)
_charsetColor = 0;
_insaneFlag = 12;
-
_insaneState = 0;
+
+ for(i=0;i<NUM_MIXER;i++) {
+ _mixer_channel[i]._sfx_sound = 0;
+ _mixer_channel[i].sound_data.standard._sfx_fp_speed = 0;
+ _mixer_channel[i].sound_data.standard._sfx_fp_pos = 0;
+ _mixer_channel[i].sound_data.standard._sfx_pos = 0;
+ _mixer_channel[i].sound_data.standard._sfx_size = 0;
+ }
+
+ _haveMsg = 0;
+ _talkDelay = 0;
+ _defaultTalkDelay = 0;
+ _useTalkAnims = 0;
+ _endOfMouthSync = 0;
+ _mouthSyncMode = 0;
+
+
+ for (i=0; i<52; i++)
+ _mouthSyncTimes[i] = 0;
}