[Scummvm-cvs-logs] SF.net SVN: scummvm:[41047] scummvm/trunk/engines/sci/sfx

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sat May 30 22:41:10 CEST 2009


Revision: 41047
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41047&view=rev
Author:   fingolfin
Date:     2009-05-30 20:41:10 +0000 (Sat, 30 May 2009)

Log Message:
-----------
SCI: Added constructor&destructor to SfxState

Modified Paths:
--------------
    scummvm/trunk/engines/sci/sfx/core.cpp
    scummvm/trunk/engines/sci/sfx/core.h

Modified: scummvm/trunk/engines/sci/sfx/core.cpp
===================================================================
--- scummvm/trunk/engines/sci/sfx/core.cpp	2009-05-30 20:40:48 UTC (rev 41046)
+++ scummvm/trunk/engines/sci/sfx/core.cpp	2009-05-30 20:41:10 UTC (rev 41047)
@@ -334,6 +334,20 @@
 		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);

Modified: scummvm/trunk/engines/sci/sfx/core.h
===================================================================
--- scummvm/trunk/engines/sci/sfx/core.h	2009-05-30 20:40:48 UTC (rev 41046)
+++ scummvm/trunk/engines/sci/sfx/core.h	2009-05-30 20:41:10 UTC (rev 41047)
@@ -54,6 +54,9 @@
 	AudioResource *_audioResource; /**< Used for audio resources in CD talkie games */
 
 public:
+	SfxState();
+	~SfxState();
+
 	/***********/
 	/* General */
 	/***********/


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list