diff options
author | Max Horn | 2009-05-30 20:41:10 +0000 |
---|---|---|
committer | Max Horn | 2009-05-30 20:41:10 +0000 |
commit | 9423c75dae4a4957384adf6b85719da7a06e93c0 (patch) | |
tree | 7087bf7a0e4584f2f3279483b21b70fd697b1894 /engines/sci | |
parent | 84473eaf1bd66ecd51e6e08a2ae7064b0b212dac (diff) | |
download | scummvm-rg350-9423c75dae4a4957384adf6b85719da7a06e93c0.tar.gz scummvm-rg350-9423c75dae4a4957384adf6b85719da7a06e93c0.tar.bz2 scummvm-rg350-9423c75dae4a4957384adf6b85719da7a06e93c0.zip |
SCI: Added constructor&destructor to SfxState
svn-id: r41047
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/sfx/core.cpp | 14 | ||||
-rw-r--r-- | engines/sci/sfx/core.h | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/engines/sci/sfx/core.cpp b/engines/sci/sfx/core.cpp index eadacdb5c9..6dcbad643c 100644 --- a/engines/sci/sfx/core.cpp +++ b/engines/sci/sfx/core.cpp @@ -334,6 +334,20 @@ int sfx_get_player_polyphony() { return 0; } +SfxState::SfxState() { + _it = NULL; + _flags = 0; + memset(&_songlib, 0, sizeof(_songlib)); + _song = NULL; + _suspended = 0; + _soundSync = 0; + _audioResource = 0; +} + +SfxState::~SfxState() { +} + + void SfxState::freezeTime() { /* Freezes the top song delay time */ const Audio::Timestamp ctime = Audio::Timestamp(g_system->getMillis(), SFX_TICKS_PER_SEC); diff --git a/engines/sci/sfx/core.h b/engines/sci/sfx/core.h index dc557f2f8c..0f34fc6208 100644 --- a/engines/sci/sfx/core.h +++ b/engines/sci/sfx/core.h @@ -54,6 +54,9 @@ public: // FIXME, make private AudioResource *_audioResource; /**< Used for audio resources in CD talkie games */ public: + SfxState(); + ~SfxState(); + /***********/ /* General */ /***********/ |