aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
AgeCommit message (Collapse)Author
2006-03-05The updateUnk6Value() appears to be some sort of random number generator, so ITorbjörn Andersson
have renamed it getRandomNr(). The _unk6 variable has been renamed _rnd. (Our MidiDriver_ADLIB class also has its own random number generator, so it's not such a far-fetched guess as it may seem.) svn-id: r21102
2006-03-05Renamed output1() to adjustVolume(). I'm still uncertain exactly *how* theTorbjörn Andersson
volume is modified (it depends on several still unknown variables), but that's all it does as far as I can tell. svn-id: r21101
2006-03-04Cleanup: output0x388(0xABCD) is now writeOPL(0xAB, 0xCD), which is slightlyTorbjörn Andersson
more easy to read. svn-id: r21081
2006-03-02Fix for bug #1438822 (Targets are case sensitive)Max Horn
svn-id: r21017
2006-03-02Changed timeing related variables to unsigned.Johannes Schickel
Also changed the callback interval. svn-id: r21012
2006-03-01Oops forgot to enable music again.Johannes Schickel
svn-id: r20993
2006-03-01Added debug calls to the adlib functions, also uses mixer samplerate now.Johannes Schickel
Fixed a bug in updateCallback41. svn-id: r20992
2006-03-01Fixed updateCallback11() according to LordHoto's directions, and renamed itTorbjörn Andersson
update_writeAdlib(). (The "update_" prefix will probably be changed later, but for now I want it to remain obvious that the functions belong to the other updateCallback*() functions.) svn-id: r20990
2006-03-01Renamed 'unk9' to a slightly more descriptive 'repeatCounter'. (I should haveTorbjörn Andersson
done that in the previous commit.) svn-id: r20987
2006-03-01Use signed integers for jump offsets, so that the jump opcodes can jump bothTorbjörn Andersson
forward and backward. This seems to fix the looping of the Black forest music (and probably others as well), and might fix the invalid pointer crashes and wrong music that would sometimes play after a song had finished. Changed the names of the jump opcode functions, and added "update_" prefixes to the previously cleaned-up opcode functions. svn-id: r20986
2006-03-01Cleaned up updateCallback36() and renamed it setVibratoDepth().Torbjörn Andersson
svn-id: r20985
2006-03-01Cleaned up updateCallback35() and renamed it setAMDepth(). It looks like theTorbjörn Andersson
_unkOutputByte2 variable is there to keep track of the current value of the BD register (AM Depth / Vibrato Depth / Rhythm) svn-id: r20984
2006-03-01Minor cleanup and comments.Torbjörn Andersson
svn-id: r20983
2006-02-28Added lock() and unlock() again to readBuffer.Johannes Schickel
Implemented stateCallback1_1. Fix some small bugs here and there (can't say what the fixed but it should be correct now) Also set's the correct timer call value (with the other the music was too fast) svn-id: r20973
2006-02-28Added some basic comments, along with some very, very minor cleanup.Torbjörn Andersson
svn-id: r20972
2006-02-28Removed unnecessary line.Torbjörn Andersson
svn-id: r20971
2006-02-28This may be needless paranoia, but I always get nervous about order ofTorbjörn Andersson
evaluation when there are multiple side-effects on the same variable (in this case the internal state modified by va_arg()) in the same expression. So let's just humor me and do the va_arg() calls one at a time. svn-id: r20970
2006-02-27Fixes hangs in the "Pool of Sorrow" scene (at least I don't get them anymore).Johannes Schickel
svn-id: r20964
2006-02-27Added WIP Adlib sound playing code to kyra.Johannes Schickel
It needs some checks since it doesn't work correctly in every case at the moment. svn-id: r20960
2006-02-25A typical example why MKID is dangerous: Kyra uses it incorrectly, thus ↵Max Horn
savegames are not interchangable between BE and LE systems. Fixing this, by breaking all LE savegames (enabling a compatibility mode, if desired, is easy) svn-id: r20866
2006-02-18- renamed PLUGIN_getSupportedGames to PLUGIN_gameIDList for consistencyMax Horn
- renamed Engine_XXX_gameList to Engine_XXX_gameList for consistency - added new Engine_XXX_findGameID / PLUGIN_findGameID function - updated plugins code to take advantage of the new plugin API, to support obsolete gameids w/o showing them to the user svn-id: r20752
2006-02-18- Removed the 'features' field from GameSettingsMax Horn
- Removed GF_DEFAULT_TO_1X_SCALER svn-id: r20747
2006-02-17Reduced header dependenciesMax Horn
svn-id: r20743
2006-02-17Added global toGameSettings() template function for convenience; simplified ↵Max Horn
GameSettings usage in some engines svn-id: r20739
2006-02-17Reduced use of GF_DEFAULT_TO_1X_SCALER in favor of a new param to ↵Max Horn
Engine::initCommonGFX; added a TODO stating that it should eventually be removed completly svn-id: r20738
2006-02-14Made the kyra debug extensions more generic, i.e. scumm engine could replaceJohannes Schickel
their debugC calls now with the new introduced debugC calls. (A mail how to use it will follow shortly on -devel) Also now these special engine debug flags can be specified from the commandline. Also made the -c & --config parameter check more secure. svn-id: r20695
2006-02-14Reworked kyra debug output system. Now he have special kyra intern debug ↵Johannes Schickel
levels + the global debug levels, for now I enable all kyra debug levels if the global debug level is not -1. see 'toggle_debug' in the kyra debugger and kyra.h for the different levels. (This is just the beginning of it anyway, for example the sound debug level isn't used for now) svn-id: r20678
2006-02-13Initializes a var that would sometimes cause the intro to run too fast.Oystein Eftevaag
svn-id: r20663
2006-02-12Reduced data duplication in module.mk files; added module.mk files for null ↵Max Horn
and x11 backends; added engines/module.mk svn-id: r20584
2006-02-11Moved engines to the new engines/ directoryMax Horn
svn-id: r20582