aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
AgeCommit message (Collapse)Author
2007-04-09Fixed crash when playing looping WAV music.Torbjörn Andersson
svn-id: r26425
2007-04-09Implemented enough of AIFF to play the music from the Broken Sword 1 demo. AtTorbjörn Andersson
least as far as I tried it which, admittedly, wasn't very far. svn-id: r26423
2007-04-01Changed _sys -> _system, matching (almost?) all other cases where we have an ↵Max Horn
OSystem* member var svn-id: r26359
2007-04-01added the instance of EventManager returned by OSystem::getEventManager as a ↵Gregory Montoir
member of the Engine base class. This allows to simply the code a bit and should more efficient too (ie. less virtual function chain calls, obj->getA()->getB()). Also updated several engines to make use of it. svn-id: r26357
2007-03-18minor cleanupRobert Göffringmann
svn-id: r26212
2007-03-17Moved Event/EventType/keyboard enum from common/system.h (part of class ↵Max Horn
OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again svn-id: r26180
2007-03-17Applied my re-revised patch #1487149 ("Simplified keyboard repeat"), withTorbjörn Andersson
Fingolfin's blessings. Keyboard repeat is now handled by the event manager, rather than by individual engines. Since this can cause problems with some engines (see the AGI engine), the extra "key down" events are marked as "synthetic", so that they can be ignored if necessary. svn-id: r26170
2007-03-17Force all code to use EventManager::pollEvent instead of OSystem::pollEventMax Horn
svn-id: r26156
2007-03-03Removed obsolete codeMax Horn
svn-id: r25946
2007-03-02Updated the BS1 music code to use the new looping feature in our MP3/Ogg ↵Max Horn
decoders svn-id: r25943
2007-03-01Get rid of the last two usages of File::incRef/decRefMax Horn
svn-id: r25919
2007-02-28Changed the AppendableAudioStream code to use a queue of buffers, instead of ↵Max Horn
a fixed size wrap-around memory buffer (this reduces memory usage in some cases by 500-700k, while actually being more flexible) svn-id: r25909
2007-02-28Fix for bug #1670081 -- SWORD1: game won't load (ogg compression) (regression)Max Horn
svn-id: r25905
2007-02-25oopsMax Horn
svn-id: r25842
2007-02-25Added TODO: Sword1's MusicHandle::play etc. should be rewritten to take ↵Max Horn
advantage of the enhanced compressed audio stream code svn-id: r25841
2007-02-25Switch to the new makeVorbisStream variant (and get rid of a File::decRef call)Max Horn
svn-id: r25840
2007-02-24Trying to unify the order in which we try the various audio formats: Prefer ↵Max Horn
FLAC (lossless) over Ogg Vorbis ('free') over MP3 -- the order is admittedly somewhat arbitrary, but at least now it's consistent across all parts of ScummVM svn-id: r25837
2007-02-24cleanupMax Horn
svn-id: r25834
2007-02-20Patch #1663933 (Kill premix channel) with a few tiny additional tweaks by meMax Horn
svn-id: r25752
2007-02-20Last batch of header consistency fixes. At least for the game engines.Torbjörn Andersson
svn-id: r25751
2007-02-17Added finalize() method to Common::OutSaveFile (which by default just ↵Max Horn
flushes the stream), changed engines to call that before deleting OutSaveFile instances (instead of just flushing) svn-id: r25660
2007-02-03Fixing various doxygen warningsMax Horn
svn-id: r25362
2007-02-03* Reimplemented Mixer::pauseAll to simply invoke pause on all channelsMax Horn
(implying change of semantics) * Reordered the params of Mixer::playRaw (the SoundType now comes first, not last) * Removed Mixer::isPaused * Removed Mixer::getSoundElapsedTimeOfSoundID * Added some doxygen comments to the Mixer svn-id: r25356
2007-01-20First phase of detection-related plugins interface improvements. Now pluginsEugene Sandulenko
return StringMap instead of fixed list of parameters. This adds great flexibility. Current patch should not alter any functionality, i.e. if there are regressions, submit a report. Phase 2 will benefit from these changes and will come later. svn-id: r25134
2006-12-15GF_DEMO is only required by the PC version of Broken Sword 1 demoTravis Howell
svn-id: r24853
2006-12-14Add proper detection of BS1 Mac demo. Game crashes at attempt to play speech.Eugene Sandulenko
svn-id: r24851
2006-12-14When drawing an interlaced frame, only clear every other line instead of theTorbjörn Andersson
entire buffer. Introduced a _drawBuffer pointer which points either to _scaledBuffer or _frameBuffer1. That way, we don't need to copy _frameBuffer1 every time we draw an unscaled frame. (Probably the most common case by far.) Adjusted the Broken Sword 1 DXA player for the second change. (It sneakily avoids copying each frame by using _drawBuffer directly.) svn-id: r24846
2006-12-11Adjust DXA scaling code for Broken Sword 1Travis Howell
svn-id: r24841
2006-11-12Slighty modified Patch #1571787: "Support for Mac Broken Sword 1". sword1macdemoEugene Sandulenko
target was commented out until existence of the demo is confirmed. svn-id: r24697
2006-09-23Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle ↵Max Horn
the linker dependency graph). Porters will have to update project files svn-id: r23974
2006-09-17Only decompress the number of speech samples indicated by 'resSize'. ThisTorbjörn Andersson
prevents crashes in the demo, and is probably a good idea anyway. svn-id: r23917
2006-09-16Reduce code duplicationMax Horn
svn-id: r23888
2006-09-09Fixed unaligned read (this fix a potential crash clicking on the Text option ↵Chris Apers
button) svn-id: r23845
2006-09-09Initialise variable. Should fix Valgrind warning.Torbjörn Andersson
svn-id: r23838
2006-09-09Fixed crashes on Zodiac and add support for this deviceChris Apers
svn-id: r23837
2006-08-28Only clear the part of the screen usually controlled by the Screen class. TheTorbjörn Andersson
buffer might not be large enough to cover the menu areas, and they will probably be clear already. Only terminate the loop, not the entire function, when pressing Esc during a cutscene. Otherwise, there may be palette glitches. svn-id: r23790
2006-08-27Forgot to close the DXA file.Torbjörn Andersson
svn-id: r23775
2006-08-27Renamed graphics/animation.[cpp|h] to graphics/mpeg_player.[cpp|h] to be moreTorbjörn Andersson
consistent with dxa_player.[cpp|h]. (Though actually, "decoder" might be more accurate...) svn-id: r23774
2006-08-26Now that the cutscene handling in both BS1 and BS2 has been extended to playTorbjörn Andersson
DXA movies (the MPEG movies still work, of course), there is no longer any need for the MPEG decoder to handle sound and frame syncing. That is now the responsibility of the player, not the decoder. The obvious next step, then, would be to put that in a new player class, and have both BS1 and BS2 use that. Maybe FF as well. svn-id: r23757
2006-08-26Added support for DXA cutscenes. Still needs a bit of cleanup, and the DCATorbjörn Andersson
player does not support the (unreleased) multi-lingual cutscene pack, since I don't have one to test with. It needs to be cleaned up a bit, but the next step will be to clean up the MPEG decoder first. svn-id: r23753
2006-07-31* Added copyright string to all engine pluginsMax Horn
* Modified about dialog to list all available plugins with their resp. copyright * Modified about dialog credits to show the GPL last (like movie end credits do with their legal text, too) svn-id: r23645
2006-07-23Use #include "..." instead of #include <...> for pack-start.h and pack-end.hTorbjörn Andersson
for consistency with other #includes. svn-id: r23585
2006-07-22Fix struct packing issues (macros are not resolve in #pragma params, at ↵Max Horn
least for GCC) svn-id: r23569
2006-07-22Using FilesystemNode::name instead of FilesystemNode::displayName in the ↵Johannes Schickel
sword1 detector code too. svn-id: r23556
2006-07-21Removing GCC_PACK, we fully rely on START_PACK_STRUCTS / END_PACK_STRUCTS ↵Max Horn
now (hiya eriktorbjorn, this one is for you *ggg*) svn-id: r23547
2006-07-09Use START_PACK_STRUCTS / END_PACK_STRUCTS when available, instead of ↵Max Horn
checking for GCC / not GCC svn-id: r23458
2006-06-24* Renamed config.mak to config.mkMax Horn
* Renamed common.rules to rules.mk * Removed explicit declaration of MODULE_DIRS in various spots (instead we let rules.mk compute it) svn-id: r23275
2006-06-24Move backends/fs/fs.h and .cpp to common/fs/fs.h and .cppMax Horn
Rationale: backend implementations belong to backends/, but portable APIs meant to be used by high level code is for common / sound / graphics / ... (compare also with backends/midi vs. sound/mididrv.h) svn-id: r23274
2006-06-20Cleanup.Torbjörn Andersson
svn-id: r23194
2006-05-25Set and show/hide mouse cursors through a "cursor manager" (analogous to theTorbjörn Andersson
recently added (cursor) palette manager) so that the cursor can be properly restored after returning from the GUI. If there's any C++ magic that can keep the backend functions from being called by anything else than these managing classes, that would probably be a good idea. Also, since the cursor manager keeps a copy of the cursor image, perhaps there are at least some backends that will no longer need to? svn-id: r22639