mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
SCI: Added constructor&destructor to SfxState
svn-id: r41047
This commit is contained in:
parent
84473eaf1b
commit
9423c75dae
@ -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);
|
||||
|
@ -54,6 +54,9 @@ public: // FIXME, make private
|
||||
AudioResource *_audioResource; /**< Used for audio resources in CD talkie games */
|
||||
|
||||
public:
|
||||
SfxState();
|
||||
~SfxState();
|
||||
|
||||
/***********/
|
||||
/* General */
|
||||
/***********/
|
||||
|
Loading…
Reference in New Issue
Block a user