SCI: Added constructor&destructor to SfxState

svn-id: r41047
This commit is contained in:
Max Horn 2009-05-30 20:41:10 +00:00
parent 84473eaf1b
commit 9423c75dae
2 changed files with 17 additions and 0 deletions

View file

@ -334,6 +334,20 @@ int sfx_get_player_polyphony() {
return 0; 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() { void SfxState::freezeTime() {
/* Freezes the top song delay time */ /* Freezes the top song delay time */
const Audio::Timestamp ctime = Audio::Timestamp(g_system->getMillis(), SFX_TICKS_PER_SEC); const Audio::Timestamp ctime = Audio::Timestamp(g_system->getMillis(), SFX_TICKS_PER_SEC);

View file

@ -54,6 +54,9 @@ public: // FIXME, make private
AudioResource *_audioResource; /**< Used for audio resources in CD talkie games */ AudioResource *_audioResource; /**< Used for audio resources in CD talkie games */
public: public:
SfxState();
~SfxState();
/***********/ /***********/
/* General */ /* General */
/***********/ /***********/