[Scummvm-cvs-logs] SF.net SVN: scummvm: [20983] scummvm/trunk/engines/kyra/sound_adlib.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Tue Feb 28 22:58:00 CET 2006
Revision: 20983
Author: eriktorbjorn
Date: 2006-02-28 22:56:53 -0800 (Tue, 28 Feb 2006)
ViewCVS: http://svn.sourceforge.net/scummvm?rev=20983&view=rev
Log Message:
-----------
Minor cleanup and comments.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/sound_adlib.cpp
Modified: scummvm/trunk/engines/kyra/sound_adlib.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound_adlib.cpp 2006-03-01 05:00:25 UTC (rev 20982)
+++ scummvm/trunk/engines/kyra/sound_adlib.cpp 2006-03-01 06:56:53 UTC (rev 20983)
@@ -512,7 +512,7 @@
lock();
--_flagTrigger;
if ((int8)_flagTrigger < 0)
- _flags &= 0xFFF7;
+ _flags &= ~8;
callbackOutput();
callbackProcess();
@@ -628,10 +628,17 @@
void AdlibDriver::output0x388(uint16 word) {
// 0x388 - Adress/Status port (R/W)
// 0x389 - Data port (W/O)
+
+ // The "wait loops" are there to allow the hardware enough time to
+ // register that it has been written to. I don't think we do that in
+ // any of the other ScummVM Adlib players, so it might not be
+ // necessary. On the other hand, it shouldn't do any harm either, so
+ // let's keep it for now. Until the music works properly, at least.
+
OPLWrite(_adlib, 0x388, (word >> 8) & 0xFF);
waitLoops(4);
OPLWrite(_adlib, 0x389, word & 0xFF);
- waitLoops(23);
+ waitLoops(23);
}
void AdlibDriver::waitLoops(int count) {
More information about the Scummvm-git-logs
mailing list