[Scummvm-cvs-logs] SF.net SVN: scummvm: [21198] scummvm/trunk/engines/kyra/sound_adlib.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Fri Mar 10 00:56:03 CET 2006
Revision: 21198
Author: eriktorbjorn
Date: 2006-03-10 00:55:19 -0800 (Fri, 10 Mar 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=21198&view=rev
Log Message:
-----------
Renamed "algorithm" "twoChan" to be more consistent with our MidiDriver_ADLIB
class, where the corresponding variable is called _twochan.
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-10 08:19:53 UTC (rev 21197)
+++ scummvm/trunk/engines/kyra/sound_adlib.cpp 2006-03-10 08:55:19 UTC (rev 21198)
@@ -127,7 +127,7 @@
uint8 unk24;
uint8 unk25;
uint8 unk28;
- uint8 algorithm;
+ uint8 twoChan;
uint8 unk39;
uint8 unk40;
uint8 unk3;
@@ -793,7 +793,7 @@
// operators produce sound directly. Complex sounds are more easily
// created if the algorithm is set to 0."
- state.algorithm = temp & 1;
+ state.twoChan = temp & 1;
// Waveform Select
writeOPL(0xE0 + regOffset, *dataptr++);
@@ -835,7 +835,7 @@
// Level Key Scaling / Total Level
writeOPL(0x43 + _outputTable[_curTable], lowByte);
- if (state.algorithm) {
+ if (state.twoChan) {
lowByte = calculateLowByte1(state);
// Level Key Scaling / Total Level
@@ -926,7 +926,7 @@
uint8 AdlibDriver::calculateLowByte1(OutputState &state) {
int8 value = state.unk24 & 0x3F;
- if (state.algorithm) {
+ if (state.twoChan) {
value += state.unk26;
value += state.unk27;
value += state.unk28;
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