aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver
AgeCommit message (Collapse)Author
2003-09-19cleanupTorbjörn Andersson
svn-id: r10308
2003-09-18moved engine.* to base; this fixes some linking issues when building a ↵Max Horn
barebone ScummVM (or maybe I just want to increase our CVS stats? <g>) svn-id: r10287
2003-09-17added a static method setDefaultDirectory to class File; used this to ↵Max Horn
simplify some code; added a global g_sound pointer in bs2, this cuts down on uses of g_sword2 (of course both should be removed on the long run); some other minor tweaks/fixes svn-id: r10278
2003-09-17cleanupMax Horn
svn-id: r10277
2003-09-16Removed some unnecessary #includes and #defines.Torbjörn Andersson
svn-id: r10264
2003-09-16Some cleanup. More to follow, I hope.Torbjörn Andersson
svn-id: r10263
2003-09-14actually this is the correct fix to "Cutscene - Press ESC to exit" :)Oliver Kiehl
svn-id: r10259
2003-09-14fix "Cutscene - Press ESC to exit" messageOliver Kiehl
svn-id: r10258
2003-09-13cleanupMax Horn
svn-id: r10236
2003-09-13pack _parallax to be on the safe sideOliver Kiehl
svn-id: r10234
2003-09-13fix speech on BEOliver Kiehl
svn-id: r10229
2003-09-13some more endian fixesOliver Kiehl
svn-id: r10224
2003-09-13should have been an int32Oliver Kiehl
svn-id: r10220
2003-09-13endian fixOliver Kiehl
svn-id: r10219
2003-09-13fix LE bugOliver Kiehl
svn-id: r10215
2003-09-13YAEBMax Horn
svn-id: r10205
2003-09-13cleanupMax Horn
svn-id: r10204
2003-09-12cleanupMax Horn
svn-id: r10197
2003-09-12endian fixesOliver Kiehl
svn-id: r10192
2003-09-10disable code because it crashesOliver Kiehl
svn-id: r10160
2003-09-10added refCon parameter to timer classMax Horn
svn-id: r10156
2003-09-09HACK: Display instructions during the cutscenes, so that the user won'tTorbjörn Andersson
think ScummVM has hung or something. svn-id: r10138
2003-09-09Reworked the last commit a bit, so that PlaySmacker() doesn't need to knowTorbjörn Andersson
as much about the text handling functions. svn-id: r10137
2003-09-09In PlaySmacker(), make sure there really is a text sprite to draw.Torbjörn Andersson
svn-id: r10136
2003-09-09Our ServiceWindows() never returns RDERR_APPCLOSED, and we always behave asTorbjörn Andersson
if we have the focus, so there's no need to check. svn-id: r10130
2003-09-09Added a WaitForFade() function, to replace numerous while-loops scatteredTorbjörn Andersson
througout the code. svn-id: r10127
2003-09-09Clarified some comments in PlaySmacker(). At this point it should be fairlyTorbjörn Andersson
trivial to actually play the Smacker voice-overs, but I think the sound code needs a bit more cleaning up first. (I'm pretty sure it isn't alignment-safe, and it might not be endian-safe either.) svn-id: r10123
2003-09-08Cleanup.Torbjörn Andersson
svn-id: r10104
2003-09-08Updated comment.Torbjörn Andersson
svn-id: r10100
2003-09-08Added some code to display the subtitles for the Smacker movies, whenTorbjörn Andersson
available, since they are separate from the Smacker files themselves. Next step will be to play the voice-over sounds as well, and to make sure subtitles settings etc. are taken into account (if they aren't already). svn-id: r10099
2003-09-08Complete rewrite of the in-game dialogs (quit, restart, settings, save andTorbjörn Andersson
load). The new code is smaller, hopefully a bit easier to read and doesn't use up all the CPU time. Of course, it may some new and exciting bugs too. ;-) svn-id: r10079
2003-09-07more endian fixesMax Horn
svn-id: r10058
2003-09-07some endian fixesMax Horn
svn-id: r10056
2003-09-05moved the sound ID param in playRaw before volume/panMax Horn
svn-id: r10023
2003-09-05Added FIXME comment about DipMusic().Torbjörn Andersson
svn-id: r10010
2003-09-05Cleanup.Torbjörn Andersson
svn-id: r10009
2003-09-05This fixes another music-related crash for me. I guess it's ourTorbjörn Andersson
implementation of music fade-out that makes it a bad thing to close the music cluster file prematurely. svn-id: r10007
2003-09-05Removed unused function, StartMusicFadeDown().Torbjörn Andersson
svn-id: r10004
2003-09-05Cleaned up UpdateCompSampleStreaming() and re-enabled music fading. WeTorbjörn Andersson
currently don't fade music that ends because we reached the end of the musical cue, though. Only music that ends because it's being replaced by another cue. svn-id: r10003
2003-09-05comment unused labelJonathan Gray
svn-id: r9995
2003-09-04Added locking to the music code. I'm not really the right person to do thisTorbjörn Andersson
but at least it doesn't seem to do any harm. Disabled the sound FX "garbage collection" in FxServer(). I'm not really convinced it's necessary at all, and even if it is, doing it from a separate thread it just begging for trouble. I've modified OpenFx() slightly to deal with this, but I may still have introduced regressions. Temporarily disabled the "goto label1" hack, since it seems to be the main reason for ScummVM crashing if I allow a piece of music to finish on its own (i.e. when not terminating it prematurely by triggering another piece of music). svn-id: r9990
2003-09-03Added FIXME comment about how we probably need locking for FxServer() andTorbjörn Andersson
the functions which access data manipulated by FxServer(). For instance, FxServer() may free bufferFx[i], which sounds potentially unhealthy to me. svn-id: r9989
2003-09-03Removed fxLooped[], fxCached[] and musCounter[]. They were written to, butTorbjörn Andersson
never read. svn-id: r9984
2003-09-03fixed music fading out. it's "goto" hack.Paweł Kołodziejski
originaly dsound has 3 seconds buffer fillled with data enought for fading this hack continue play music for time while fading is going svn-id: r9983
2003-09-03more cleanupPaweł Kołodziejski
svn-id: r9982
2003-09-03some cleanup codePaweł Kołodziejski
svn-id: r9981
2003-09-03fixed interval of fxServer func (why i saw before 1000 miliseconds?), moved ↵Paweł Kołodziejski
init sound data to class sound svn-id: r9980
2003-09-02Unless I'm gravely mistaken, StreamCompMusic() should always create a newTorbjörn Andersson
stream, in which case the warning about the sound handle being 0 is bogus. svn-id: r9973
2003-09-02Moved the sound initialisation to the Sword2Sound constructor to avoidTorbjörn Andersson
warning messages about uninitialised sound handles. svn-id: r9972
2003-09-02Another untested endian fix.Torbjörn Andersson
svn-id: r9971