aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-06-19 22:06:30 +1000
committerPaul Gilbert2012-06-19 22:06:30 +1000
commitd2061f29bef9f2dadd5eda149384b5fdfbcc3ac1 (patch)
tree18d8fb814857d9e545e7e6b66eb3904c2c169ec6 /engines
parent9d437a26dd296d6cf7e4db4749a90cafe9787377 (diff)
downloadscummvm-rg350-d2061f29bef9f2dadd5eda149384b5fdfbcc3ac1.tar.gz
scummvm-rg350-d2061f29bef9f2dadd5eda149384b5fdfbcc3ac1.tar.bz2
scummvm-rg350-d2061f29bef9f2dadd5eda149384b5fdfbcc3ac1.zip
TONY: Added initialisation of FPSound fields in it's constructor
Diffstat (limited to 'engines')
-rw-r--r--engines/tony/sound.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/tony/sound.cpp b/engines/tony/sound.cpp
index e4f46af146..e79b06191e 100644
--- a/engines/tony/sound.cpp
+++ b/engines/tony/sound.cpp
@@ -828,8 +828,18 @@ FPStream::FPStream(bool bSoundOn) {
_bFileLoaded = false;
_bIsPlaying = false;
_bPaused = false;
+ _bLoop = false;
+ _bDoFadeOut = false;
_bSyncExit = false;
- _hHot1 = _hHot2 = _hHot3 = _hPlayThreadPlayFast = _hPlayThreadPlayNormal = CORO_INVALID_PID_VALUE;
+ _hHot1 = _hHot2 = _hHot3 = CORO_INVALID_PID_VALUE;
+ _hPlayThread = _hPlayThreadPlayFast = _hPlayThreadPlayNormal = CORO_INVALID_PID_VALUE;
+ _hThreadEnd = CORO_INVALID_PID_VALUE;
+ _dwBufferSize = _dwSize = 0;
+ _dwCodec = 0;
+ _lastVolume = 0;
+ _lpTempBuffer = NULL;
+ _syncToPlay = NULL;
+ _codec = NULL;
}
bool FPStream::createBuffer(int nBufSize) {