diff options
author | Torbjörn Andersson | 2006-03-10 08:55:19 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-03-10 08:55:19 +0000 |
commit | 8a9286ce53e27bc6a9cb1b6a461f3d9d1d778c05 (patch) | |
tree | b63c744557cecd3bdd13f8042e56b43ffb0c6a96 /engines | |
parent | 37b5e3bcca7b10f01ec4d84813de492841a926e0 (diff) | |
download | scummvm-rg350-8a9286ce53e27bc6a9cb1b6a461f3d9d1d778c05.tar.gz scummvm-rg350-8a9286ce53e27bc6a9cb1b6a461f3d9d1d778c05.tar.bz2 scummvm-rg350-8a9286ce53e27bc6a9cb1b6a461f3d9d1d778c05.zip |
Renamed "algorithm" "twoChan" to be more consistent with our MidiDriver_ADLIB
class, where the corresponding variable is called _twochan.
svn-id: r21198
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/sound_adlib.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/kyra/sound_adlib.cpp b/engines/kyra/sound_adlib.cpp index 767d4330a6..e0db2523f7 100644 --- a/engines/kyra/sound_adlib.cpp +++ b/engines/kyra/sound_adlib.cpp @@ -127,7 +127,7 @@ private: uint8 unk24; uint8 unk25; uint8 unk28; - uint8 algorithm; + uint8 twoChan; uint8 unk39; uint8 unk40; uint8 unk3; @@ -793,7 +793,7 @@ void AdlibDriver::setInstrument(uint8 regOffset, uint8 *dataptr, OutputState &st // 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 @@ void AdlibDriver::adjustVolume(OutputState &state) { // 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 @@ void AdlibDriver::stateCallback2_1(OutputState &state) { 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; |