[Scummvm-cvs-logs] SF.net SVN: scummvm:[41012] scummvm/trunk/engines/kyra/sound_midi.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Fri May 29 19:38:23 CEST 2009
Revision: 41012
http://scummvm.svn.sourceforge.net/scummvm/?rev=41012&view=rev
Author: lordhoto
Date: 2009-05-29 17:38:22 +0000 (Fri, 29 May 2009)
Log Message:
-----------
Output a warning to the user, when he tries to play back MT32 MIDI tracks with a General MIDI device.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/sound_midi.cpp
Modified: scummvm/trunk/engines/kyra/sound_midi.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound_midi.cpp 2009-05-29 17:21:00 UTC (rev 41011)
+++ scummvm/trunk/engines/kyra/sound_midi.cpp 2009-05-29 17:38:22 UTC (rev 41012)
@@ -29,6 +29,8 @@
#include "common/system.h"
#include "common/config-manager.h"
+#include "gui/message.h"
+
namespace Kyra {
class MidiOutput : public MidiDriver {
@@ -467,6 +469,19 @@
// file extension.
if (_vm->game() == GI_KYRA1 && _type == kMidiGM)
_type = kMidiMT32;
+
+ // Display a warning about possibly wrong sound when the user only has
+ // a General MIDI device, but the game is setup to use Roland MT32 MIDI.
+ // (This will only happen in The Legend of Kyrandia 1 though, all other
+ // supported games include special General MIDI tracks).
+ if (_type == kMidiMT32 && !_nativeMT32) {
+ ::GUI::MessageDialog dialog("You appear to be using a General MIDI device,\n"
+ "but your game only supports Roland MT32 MIDI.\n"
+ "We try to map the Roland MT32 instruments to\n"
+ "General MIDI ones. After all it might happen\n"
+ "that a few tracks will not be correctly played.");
+ dialog.runModal();
+ }
}
SoundMidiPC::~SoundMidiPC() {
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