aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/sound.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-13 09:42:09 +1000
committerPaul Gilbert2012-05-13 09:43:11 +1000
commitc35b5397168299176eab69622044a98c8995a369 (patch)
treed980995455c7daf141a3b8998432ab7752f252d9 /engines/tony/sound.cpp
parent0a835de46805a3f8db4c68b3081fdf376e03a567 (diff)
downloadscummvm-rg350-c35b5397168299176eab69622044a98c8995a369.tar.gz
scummvm-rg350-c35b5397168299176eab69622044a98c8995a369.tar.bz2
scummvm-rg350-c35b5397168299176eab69622044a98c8995a369.zip
TONY: Some further initialisation of object fields
Diffstat (limited to 'engines/tony/sound.cpp')
-rw-r--r--engines/tony/sound.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/tony/sound.cpp b/engines/tony/sound.cpp
index 0658c99f48..01968ea579 100644
--- a/engines/tony/sound.cpp
+++ b/engines/tony/sound.cpp
@@ -775,6 +775,8 @@ uint32 CODECADPCMSTEREO::Decompress(Common::File &fp, void *buf, uint32 dwSize)
FPSOUND::FPSOUND() {
lpDS = NULL;
lpDSBPrimary = NULL;
+ hwnd = 0;
+ bSoundSupported = false;
}
@@ -1028,6 +1030,19 @@ FPSFX::FPSFX(LPDIRECTSOUND lpds, HWND hWnd, bool bSoundOn) {
return;
/* Poiché non abbiamo ancora nessun dato sull'effetto sonoro, non possiamo fare nulla */
+#else
+ bIsVoice = false;
+ lastVolume = 0;
+ dwFreq = 0;
+ hEndOfBuffer = CORO_INVALID_PID_VALUE;
+ bFileLoaded = false;
+ bSoundSupported = false;
+ bLoop = false;
+ bPaused = false;
+ bStereo = false;
+ b16bit = false;
+ bIsPlaying = false;
+ bIsVoice = false;
#endif
}