[Scummvm-cvs-logs] SF.net SVN: scummvm: [21101] scummvm/trunk/engines/kyra/sound_adlib.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Mar 5 16:56:35 CET 2006


Revision: 21101
Author:   eriktorbjorn
Date:     2006-03-05 11:48:22 -0800 (Sun, 05 Mar 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm?rev=21101&view=rev

Log Message:
-----------
Renamed output1() to adjustVolume(). I'm still uncertain exactly *how* the
volume is modified (it depends on several still unknown variables), but that's
all it does as far as I can tell.

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-05 14:03:29 UTC (rev 21100)
+++ scummvm/trunk/engines/kyra/sound_adlib.cpp	2006-03-05 19:48:22 UTC (rev 21101)
@@ -160,7 +160,7 @@
 	void updateAndOutput2(uint8 unk1, uint8 *dataptr, OutputState &state);
 	void updateAndOutput3(OutputState &state);
 
-	void output1(OutputState &state);
+	void adjustVolume(OutputState &state);
 
 	uint8 calculateLowByte1(OutputState &state);
 	uint8 calculateLowByte2(OutputState &state);
@@ -809,8 +809,8 @@
 	state.unk38 = state.unk36;
 }
 
-void AdlibDriver::output1(OutputState &state) {
-	debugC(9, kDebugLevelSound, "output1(%d)", &state - _outputTables);
+void AdlibDriver::adjustVolume(OutputState &state) {
+	debugC(9, kDebugLevelSound, "adjustVolume(%d)", &state - _outputTables);
 	uint8 lowByte = calculateLowByte2(state);
 
 	// Level Key Scaling / Total Level
@@ -1134,7 +1134,7 @@
 
 int AdlibDriver::updateCallback25(uint8 *&dataptr, OutputState &state, uint8 value) {
 	state.unk26 = value;
-	output1(state);
+	adjustVolume(state);
 	return 0;
 }
 
@@ -1181,7 +1181,7 @@
 	_curTable = value;
 	OutputState &state2 = _outputTables[value];
 	state2.unk27 = *dataptr++;
-	output1(state2);
+	adjustVolume(state2);
 
 	_curTable = tableBackup;
 	return 0;
@@ -1193,7 +1193,7 @@
 	_curTable = value;
 	OutputState &state2 = _outputTables[value];
 	state2.unk27 += *dataptr++;
-	output1(state2);
+	adjustVolume(state2);
 
 	_curTable = tableBackup;
 	return 0;
@@ -1223,7 +1223,7 @@
 
 int AdlibDriver::updateCallback37(uint8 *&dataptr, OutputState &state, uint8 value) {
 	state.unk26 += value;
-	output1(state);
+	adjustVolume(state);
 	return 0;
 }
 







More information about the Scummvm-git-logs mailing list