[Scummvm-cvs-logs] SF.net SVN: scummvm: [29573] scummvm/trunk/engines/agi

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Nov 19 23:37:52 CET 2007


Revision: 29573
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29573&view=rev
Author:   thebluegr
Date:     2007-11-19 14:37:52 -0800 (Mon, 19 Nov 2007)

Log Message:
-----------
_speakerStream should be public. Also, when preAGI engine closes, the speaker handle is freed

Modified Paths:
--------------
    scummvm/trunk/engines/agi/preagi.cpp
    scummvm/trunk/engines/agi/preagi.h

Modified: scummvm/trunk/engines/agi/preagi.cpp
===================================================================
--- scummvm/trunk/engines/agi/preagi.cpp	2007-11-19 22:29:02 UTC (rev 29572)
+++ scummvm/trunk/engines/agi/preagi.cpp	2007-11-19 22:37:52 UTC (rev 29573)
@@ -196,6 +196,7 @@
 }
 
 PreAgiEngine::~PreAgiEngine() {
+	_mixer->stopHandle(_speakerHandle);
 	delete _speakerStream;
 }
 

Modified: scummvm/trunk/engines/agi/preagi.h
===================================================================
--- scummvm/trunk/engines/agi/preagi.h	2007-11-19 22:29:02 UTC (rev 29572)
+++ scummvm/trunk/engines/agi/preagi.h	2007-11-19 22:37:52 UTC (rev 29573)
@@ -57,6 +57,7 @@
 	SoundMgr *_sound;
 	PictureMgr *_picture;
 	PreAGI_Console *_console;
+	Audio::PCSpeaker *_speakerStream;
 
 	void clearImageStack() {}
 	void recordImageStackCall(uint8 type, int16 p1, int16 p2, int16 p3,
@@ -95,7 +96,6 @@
 private:
 	int _defaultColor;
 
-	Audio::PCSpeaker *_speakerStream;
 	Audio::SoundHandle _speakerHandle;
 };
 


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