aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-03-06 16:31:19 +0000
committerTorbjörn Andersson2006-03-06 16:31:19 +0000
commit628d64f13632e4f6c2ed0d40de777671e11d6600 (patch)
treebe29886da364536b9e4688285ab9898487da2920 /engines
parentddd312cea7f48ec6ce6f2ec32304bf2953df3fd1 (diff)
downloadscummvm-rg350-628d64f13632e4f6c2ed0d40de777671e11d6600.tar.gz
scummvm-rg350-628d64f13632e4f6c2ed0d40de777671e11d6600.tar.bz2
scummvm-rg350-628d64f13632e4f6c2ed0d40de777671e11d6600.zip
More renamings: _unkTableByte1 is now _tempo, and updateCallback29() is
setTempo(). svn-id: r21110
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/sound_adlib.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/kyra/sound_adlib.cpp b/engines/kyra/sound_adlib.cpp
index 19e0b92417..7c5b70174d 100644
--- a/engines/kyra/sound_adlib.cpp
+++ b/engines/kyra/sound_adlib.cpp
@@ -212,7 +212,7 @@ private:
int updateCallback26(uint8 *&dataptr, OutputState &state, uint8 value);
int updateCallback27(uint8 *&dataptr, OutputState &state, uint8 value);
int updateCallback28(uint8 *&dataptr, OutputState &state, uint8 value);
- int updateCallback29(uint8 *&dataptr, OutputState &state, uint8 value);
+ int setTempo(uint8 *&dataptr, OutputState &state, uint8 value);
int updateCallback30(uint8 *&dataptr, OutputState &state, uint8 value);
int updateCallback31(uint8 *&dataptr, OutputState &state, uint8 value);
int updateCallback32(uint8 *&dataptr, OutputState &state, uint8 value);
@@ -282,7 +282,7 @@ private:
uint8 _unkOutputByte2;
uint8 _unkOutputByte1;
- uint8 _unkTableByte1;
+ uint8 _tempo;
const uint8 *_tablePtr1;
const uint8 *_tablePtr2;
@@ -323,7 +323,7 @@ AdlibDriver::AdlibDriver(Audio::Mixer *mixer) {
_rnd = 0x1234;
_continueFlag = 0;
- _unkTableByte1 = 0;
+ _tempo = 0;
_unkValue3 = 0xFF;
_unkValue1 = _unkValue2 = _unkValue4 = _unkValue5 = 0;
@@ -513,7 +513,7 @@ void AdlibDriver::callback() {
callbackOutput();
callbackProcess();
- _unkValue3 += _unkTableByte1;
+ _unkValue3 += _tempo;
if ((int8)_unkValue3 < 0) {
if (!(--_unkValue2)) {
_unkValue2 = _unkValue1;
@@ -559,7 +559,7 @@ void AdlibDriver::callbackProcess() {
_unkOutputByte1 = _outputTable[_curTable];
if (table.unk6) {
- table.unk1 = _unkTableByte1;
+ table.unk1 = _tempo;
}
uint16 temp = table.unk4 + table.unk1;
@@ -1151,8 +1151,8 @@ int AdlibDriver::updateCallback28(uint8 *&dataptr, OutputState &state, uint8 val
return 0;
}
-int AdlibDriver::updateCallback29(uint8 *&dataptr, OutputState &state, uint8 value) {
- _unkTableByte1 = value;
+int AdlibDriver::setTempo(uint8 *&dataptr, OutputState &state, uint8 value) {
+ _tempo = value;
return 0;
}
@@ -1325,7 +1325,7 @@ int AdlibDriver::updateCallback41(uint8 *&dataptr, OutputState &state, uint8 val
int AdlibDriver::updateCallback42(uint8 *&dataptr, OutputState &state, uint8 value) {
--dataptr;
- state.unk1 = _unkTableByte1;
+ state.unk1 = _tempo;
return 0;
}
@@ -1727,7 +1727,7 @@ const AdlibDriver::ParserOpcode AdlibDriver::_parserOpcodeTable[] = {
// 36
COMMAND(updateCallback28),
COMMAND(updateCallback9),
- COMMAND(updateCallback29),
+ COMMAND(setTempo),
COMMAND(updateCallback30),
// 40