[Scummvm-cvs-logs] SF.net SVN: scummvm: [31146] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Mar 16 16:35:14 CET 2008


Revision: 31146
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31146&view=rev
Author:   lordhoto
Date:     2008-03-16 08:35:12 -0700 (Sun, 16 Mar 2008)

Log Message:
-----------
Implemented opcode 16: o2_soundFadeOut

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra_v2.h
    scummvm/trunk/engines/kyra/script_v2.cpp

Modified: scummvm/trunk/engines/kyra/kyra_v2.h
===================================================================
--- scummvm/trunk/engines/kyra/kyra_v2.h	2008-03-16 15:30:57 UTC (rev 31145)
+++ scummvm/trunk/engines/kyra/kyra_v2.h	2008-03-16 15:35:12 UTC (rev 31146)
@@ -960,6 +960,7 @@
 	int o2_setCharacterAnimFrame(ScriptState *script);
 	int o2_trySceneChange(ScriptState *script);
 	int o2_customCharacterChat(ScriptState *script);
+	int o2_soundFadeOut(ScriptState *script);
 	int o2_showChapterMessage(ScriptState *script);
 	int o2_restoreTalkTextMessageBkgd(ScriptState *script);
 	int o2_wsaClose(ScriptState *script);

Modified: scummvm/trunk/engines/kyra/script_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_v2.cpp	2008-03-16 15:30:57 UTC (rev 31145)
+++ scummvm/trunk/engines/kyra/script_v2.cpp	2008-03-16 15:35:12 UTC (rev 31146)
@@ -26,6 +26,7 @@
 #include "kyra/kyra_v2.h"
 #include "kyra/text_v2.h"
 #include "kyra/wsamovie.h"
+#include "kyra/sound.h"
 
 #include "common/endian.h"
 
@@ -149,6 +150,12 @@
 	return 0;
 }
 
+int KyraEngine_v2::o2_soundFadeOut(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o2_soundFadeOut(%p) ()", (const void *)script);
+	_sound->beginFadeOut();
+	return 0;
+}
+
 int KyraEngine_v2::o2_showChapterMessage(ScriptState *script) {
 	debugC(3, kDebugLevelScriptFuncs, "o2_showChapterMessage(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	showChapterMessage(stackPos(0), stackPos(1));
@@ -1377,7 +1384,7 @@
 		OpcodeUnImpl(),
 		Opcode(o2_customCharacterChat),
 		// 0x10
-		OpcodeUnImpl(),
+		Opcode(o2_soundFadeOut),
 		Opcode(o2_showChapterMessage),
 		Opcode(o2_restoreTalkTextMessageBkgd),
 		OpcodeUnImpl(),


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