SCI: Added constructor&destructor to SfxState
svn-id: r41047
This commit is contained in:
parent
84473eaf1b
commit
9423c75dae
2 changed files with 17 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue