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

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Tue Jun 6 17:38:38 CEST 2006


Revision: 22952
Author:   eriktorbjorn
Date:     2006-06-06 08:38:34 -0700 (Tue, 06 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22952&view=rev

Log Message:
-----------
For the masochists out there,i it is now possible to select the PC Speaker
music driver. There are some other emulation modes, but I'm not sure how they
should be mapped to from our music drivers.

Modified Paths:
--------------
    scummvm/trunk/engines/agi/agi.cpp
Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp	2006-06-06 11:07:03 UTC (rev 22951)
+++ scummvm/trunk/engines/agi/agi.cpp	2006-06-06 15:38:34 UTC (rev 22952)
@@ -493,8 +493,20 @@
 	memset(&opt, 0, sizeof(struct agi_options));
 	opt.gamerun = GAMERUN_RUNGAME;
 	opt.hires = true;
-	opt.soundemu = SOUND_EMU_NONE;
 
+	// TODO: Some sound emulation modes do not fit our current music
+	//       drivers, and I'm not sure what they are. For now, they might
+	//       as well be called "PC Speaker" and "Not PC Speaker".
+
+	switch (MidiDriver::detectMusicDriver(MDT_PCSPK)) {
+	case MD_PCSPK:
+		opt.soundemu = SOUND_EMU_PC;
+		break;
+	default:
+		opt.soundemu = SOUND_EMU_NONE;
+		break;
+	}
+
 	if (ConfMan.hasKey("render_mode"))
 		opt.renderMode = Common::parseRenderMode(ConfMan.get("render_mode").c_str());
 


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