aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-03-10Further guesswork: 'unk2' appears to be the priority of a sound, since theTorbjörn Andersson
callbackOutput() and updateCallback3() functions won't change the channel data pointer unless the new sound has a higher unk2 and the current one. Since it's set to 0 when the data pointer is nulled, I've changed the priority to be unsigned. The updateCallback22() function is now update_setPriority(). svn-id: r21206
2006-03-10Fleshed out some guesswork comments.Torbjörn Andersson
svn-id: r21205
2006-03-10Renamed _unkOutputByte1 _curRegOffset. It doesn't always correspond to theTorbjörn Andersson
_curTable channel, but it probably does so whenever both of them are used together. svn-id: r21204
2006-03-10Added guesswork comments for stateCallback2_1() and its related functions andTorbjörn Andersson
variables, and cleaned it up slightly. (Some of its variables are now signed.) svn-id: r21203
2006-03-10Added guesswork comments for stateCallback1_1() and its related functions andTorbjörn Andersson
variables. svn-id: r21202
2006-03-10Fixed some obvious errors in the comments I added before.Torbjörn Andersson
svn-id: r21201
2006-03-10Added some guesswork comments about stateCallback1_2() and related functionsTorbjörn Andersson
and variables. svn-id: r21200
2006-03-10The calculateLowByte1() and 2() functions are used for calculating the "totalTorbjörn Andersson
level", which I believe is the individual channel volume. (The functions also return the "scaling level" bits, but they are preserved, not calculated.) I have renamed these functions calculateOpLevel1() and 2(). The unk25 and unk26 variables have been renamed opLevel1 and opLevel2. These are called oplvl_1 and oplvl_2 in our MidiDriver_ADLIB class. The unk26, unk27 and unk28 variables are potentially added to both operator levels, and have been renamed opExtraLevel1, opExtralevel2 and opExtraLevel3. The updateCallback25() function has been remamed update_setExtraLevel1(). The updateCallback33() function has been renamed update_setExtraLevel2(). The updateCallback32() function has been renamed update_setExtraLevel3(). Note that these callbacks aren't quite as similar as their names would seem to indicate: They differ in whether or not the volume is updated and/or how the parameters are passed. svn-id: r21199
2006-03-10Renamed "algorithm" "twoChan" to be more consistent with our MidiDriver_ADLIBTorbjörn Andersson
class, where the corresponding variable is called _twochan. svn-id: r21198
2006-03-10Since updateAndOutput2() is the only function that sets up wave forms andTorbjörn Andersson
stuff, it pretty much has to be our "set instrument" function. Also, while I'm not entirely sure of the implications, "unk23" is the Algorithm bit for the Feedback / Algorithm register, so I've renamed it "algorithm". svn-id: r21197
2006-03-10Some more/updated comments.Torbjörn Andersson
svn-id: r21196
2006-03-10Adjust talk sound check in CHARSET_1(), since processSfxQueues() doesn't ↵Travis Howell
exist in HE games. Fixes glitch when time machine is used in putttime. svn-id: r21195
2006-03-10Revert that mistaken change to English verb table for C64 maniacTravis Howell
svn-id: r21191
2006-03-10Update German verbs for C64 maniac, to match originalTravis Howell
svn-id: r21190
2006-03-09minor cleanup.Gregory Montoir
svn-id: r21189
2006-03-09Moved typedef Common::String into class declaration.Lars Persson
svn-id: r21187
2006-03-09oo'ified sound code and added basic support for OS adlib music.Gregory Montoir
svn-id: r21186
2006-03-09- Removes deleted waitTicks prototype in KyraEngineJohannes Schickel
- Adds sound fading support to the adlib player - Adds support for stopping running tracks - Changes baseFreq type back to uint8 - corrects octave handling in updateAndOutput1 (Thanks to eriktorbjorn for doing that) svn-id: r21185
2006-03-09As LordHoto pointed out to me, updateCallback41() was slightly different afterTorbjörn Andersson
all: it adjusts the frequency even when state.unk16 is zero. Fixed that, and added some comments to hopefully explain the differences between the cleaned up code and the original disassembly. svn-id: r21184
2006-03-09More cleanups and renamings:Torbjörn Andersson
* Rewrote updateCallback41() in terms of updateAndOutput1(), since they were almost identical to begin with. * Rewrote updateAndOutput1() for better readability. * Made unk10 signed, and renamed it baseOctave. * Made unk14 signed, and renamed it baseNote. * Made unk15 signed, and renamed it baseFreq. * Renamed unk17 regAx. It appears to be a cache for that register. * Renamed unkOutputValue1 regBx. It appears to be a cache for that register. * Renamed updateCallback8() update_setBaseOctave(). * Renamed updateCallback13() update_setBaseNote(). * Renamed updateCallback20() update_setBaseFreq(). Which still leaves the mystery of unk16 and _unkTables[]. Perhaps *this* is the pitch bend? svn-id: r21183
2006-03-09Updated build scriptsLars Persson
svn-id: r21182
2006-03-09Moved SAGA plugin interface code from saga.cpp to game.cppMax Horn
svn-id: r21181
2006-03-09Moved SIMON plugin interface code from simon.cpp to game.cppMax Horn
svn-id: r21180
2006-03-09Compile fixes for VC6Lars Persson
svn-id: r21179
2006-03-09Modified SIMON engine to use DetectedGame::updateDescMax Horn
svn-id: r21176
2006-03-09Credit Tyst for new SVG logo.Eugene Sandulenko
svn-id: r21173
2006-03-09Modified SAGA engine to use DetectedGame::updateDesc (note: there is a new ↵Max Horn
TODO in the saveload code now) svn-id: r21171
2006-03-09Made sure the generic ITE description matches the 'special' ones in game.cppMax Horn
svn-id: r21169
2006-03-09Replaced GF_ENGLISH in LureGameSettings by a proper Common::Language member ↵Max Horn
variable; added (commented out) entries for the german and french lure svn-id: r21168
2006-03-09Make use of DetectedGame::updateDesc in the kyra & lure enginesMax Horn
svn-id: r21167
2006-03-09Added new method DetectedGame::updateDesc, to ease generation of uniform ↵Max Horn
description strings svn-id: r21166
2006-03-09Fix compilation on MSVC. Reported by QuietustEugene Sandulenko
svn-id: r21165
2006-03-09Set down in comments what I know about _outputTable[], and what I suspect aboutTorbjörn Andersson
_unkTable[]. Investigating the latter further might help unravelling several of the "unk" variables. (Right now, I'm suspecting that unk15 is the pitch bend.) svn-id: r21164
2006-03-09Corrected a few comments where I had mistaken the note on/off bit for one ofTorbjörn Andersson
the octave bits. The unkOuput1() function always turns off the note, so I've renamed it noteOff(). I've added some comments to unkOuput2() as well, but I'm still not quite sure what its purpose is. It seems unlikely that it's simply a "note on" function, given the many things it will clear for the channel. It does end by turning the note on, though. Strange. svn-id: r21162
2006-03-09Correct GCC_PACK define for non-GCCTravis Howell
svn-id: r21160
2006-03-09Revert GCC_PACK removal, which broke compileTravis Howell
svn-id: r21159
2006-03-09Revert GCC_PACK removal, which broke compileTravis Howell
svn-id: r21158
2006-03-09Converted last dialogs to new scheme. Now it seems to be everything. Please,Eugene Sandulenko
test throghoutly. svn-id: r21157
2006-03-09Implemented SysEx command 1 for non-S&M SCUMM games, per the latest comment ↵Jamieson Christian
on Bug 1088045. svn-id: r21156
2006-03-09Add the known 'extra' info to the description string; and removed the old ↵Max Horn
hack which added this information during launch (which really was a bad hack) svn-id: r21155
2006-03-09- Removed the code from the launcher that adds language/platform to theMax Horn
game descriptions. Doing this now is the responsibility of the engines. - Adapted the SCUMM engine to add lang/platform to the desc string if necessary. Other engines still have to be adapted (but many do not seem to need this at all, since they either are lang/platform agnostic, or already include this information in their MD5 tables). svn-id: r21154
2006-03-09Yet another plugin/game detector related TODOMax Horn
svn-id: r21153
2006-03-09Tiny code simplificationMax Horn
svn-id: r21152
2006-03-09Moved keys mapping dialog to new scheme. Made it generic. Fixed severalEugene Sandulenko
compilation errors associated with it. svn-id: r21151
2006-03-09- Renamed GameSettings to PlainGameDescriptorMax Horn
- Added new GameDescriptor struct (similar to PlainGameDescriptor but with Common::String members instead of const char * ones) - Changed DetectedGame to subclass GameDescriptor - Removed toGameSettings() in favor of new (template) constructors in DetectedGame and GameDescriptor - Fixed a bug in the obsolete gameid handling in the SCUMM & SIMON engines svn-id: r21150
2006-03-09- added new toDetectedGame() template function (analog to toGameSettings)Max Horn
- made use of the new DetectedGame constructor from my last commit - some related cleanup svn-id: r21149
2006-03-09Yet another plugin related TODOMax Horn
svn-id: r21148
2006-03-09Converted all scumm dialogs to new schemeEugene Sandulenko
svn-id: r21147
2006-03-08Commits patch #1437774 ("KYRA1: Game will crash if bitmap is missing").Johannes Schickel
svn-id: r21146
2006-03-08Implemented the last menu (the settings screen). Walking speed, text speed,Oystein Eftevaag
and speech modes (text only, speech only, speech & text) can now be configured. Toggling music and sound in general is not enabled yet. Also formatted the static menu resources a bit differently, made sure some vars in the menu code always got initalized, and fixed a slight formatting error :). svn-id: r21145