aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-03-14 23:39:42 +0000
committerTorbjörn Andersson2006-03-14 23:39:42 +0000
commit1f603fdd98959f189f10073bff1d8f83f72eac6b (patch)
treed6e988bd1e614b37f570c4e938d1daf172cfaf8b
parent408b9a41eeeb9ce162f4ad97867365f3894b2c07 (diff)
downloadscummvm-rg350-1f603fdd98959f189f10073bff1d8f83f72eac6b.tar.gz
scummvm-rg350-1f603fdd98959f189f10073bff1d8f83f72eac6b.tar.bz2
scummvm-rg350-1f603fdd98959f189f10073bff1d8f83f72eac6b.zip
Cleanup.
svn-id: r21304
-rw-r--r--engines/kyra/sound_adlib.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/engines/kyra/sound_adlib.cpp b/engines/kyra/sound_adlib.cpp
index 586326e9d0..f49c16598c 100644
--- a/engines/kyra/sound_adlib.cpp
+++ b/engines/kyra/sound_adlib.cpp
@@ -1649,16 +1649,10 @@ int AdlibDriver::updateCallback49(uint8 *&dataptr, Channel &channel, uint8 value
value |= _unkOutputByte2;
value |= 0x20;
- // FIXME: This could probably be replaced with writeOPL(0xBD, value),
- // but to make it easier to compare the output to DOSbox, write
- // directly to the data port and do the probably unnecessary
- // delay loop.
-
- OPLWrite(_adlib, 0x389, value);
-
- for (int i = 0; i < 23; i++)
- OPLRead(_adlib, 0x388);
+ // The original only wrote to the data port here, but that shouldn't
+ // make any real difference.
+ writeOPL(0xBD, value);
return 0;
}