Commit Graph
86814 Commits
Author SHA1 Message Date
Max Horn 8466221fce Simplify code a bit -- got rid of File::incRef usage, an unnecessary member var, fixed a potential memory leak (if all channels are in use), and fixed a potential OOB error (if stopSound(-1) was called)
svn-id: r25916
2007-03-01 17:04:50 +00:00
Sven Hesse 16015aaa3b Repaired the pathfinding in Bargon Attack
svn-id: r25915
2007-03-01 14:41:40 +00:00
Max Horn 6ee03e91c7 Rephrased a comment a bit
svn-id: r25914
2007-03-01 13:51:04 +00:00
Lars Persson ab605c6a41 Updated Symbian File handling to be able support AGI games, but do work due to a fluke in the AGI detection.
svn-id: r25912
2007-02-28 21:25:05 +00:00
Torbjörn Andersson 61e2a9eb78 Clarified some comments and moved some asserts to hopefully answer Fingolfin's
question why we always created a mono audio stream. There are other games that
use more advanced versions of the VQA format, but it seems unlikely that
ScummVM will ever support any of them.

svn-id: r25911
2007-02-28 18:25:42 +00:00
Max Horn 5e2fe7dc7f cleanup
svn-id: r25910
2007-02-28 15:04:02 +00:00
Max Horn 8c8abca6f8 Changed the AppendableAudioStream code to use a queue of buffers, instead of 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-28 14:48:26 +00:00
Max Horn dea688d0f5 Fix spelling
svn-id: r25908
2007-02-28 14:07:47 +00:00
Max Horn 6be027afab cleanup
svn-id: r25906
2007-02-28 12:54:59 +00:00
Max Horn 551b2b6b3d Fix for bug #1670081 -- SWORD1: game won't load (ogg compression) (regression)
svn-id: r25905
2007-02-28 10:44:52 +00:00
Max Horn 0076761fa6 compress_simon -> compress_agos
svn-id: r25904
2007-02-28 09:14:26 +00:00
Torbjörn Andersson 75d79f639b Changed "each X mins" to "every X mins".
svn-id: r25901
2007-02-27 21:26:21 +00:00
Nicola Mettifogo b2927b69c6 changed font handling:
- engine doesn't see font as a low-level Cnv anymore
- the Graphics class takes care of freeing memory on font changes

svn-id: r25900
2007-02-27 19:39:33 +00:00
Johannes Schickel 75af373278 ops missed one spot last commit.
svn-id: r25899
2007-02-27 17:12:16 +00:00
Johannes Schickel 56f65a5002 fix for gradient calculation
svn-id: r25898
2007-02-27 17:10:40 +00:00
Max Horn 2dfea717a3 removing SCUMMVM_SAVEPATH from the man page (it has been deprecated for some time now)
svn-id: r25895
2007-02-27 12:26:47 +00:00
Travis Howell 7380142071 Change the volume of music channel of mixer, when adjusting music volume too.
svn-id: r25894
2007-02-27 11:47:28 +00:00
Kostas Nakos 235aa3376b properly support saga and cine engines
svn-id: r25893
2007-02-27 11:07:59 +00:00
Torbjörn Andersson 2c7bf36af8 Close sky.dnr directly after reading it into memory. No need to keep it open
until the Disk object is deleted.

svn-id: r25889
2007-02-26 23:08:52 +00:00
Paul Gilbert 41574458fc Added animation handler for standard characters that can be talked to
svn-id: r25888
2007-02-26 22:56:02 +00:00
Torbjörn Andersson 437bc950b6 Measure the "open time" from when the pop-up dialog was first drawn, not from
when it was created. This should fix bug #1667992.

svn-id: r25887
2007-02-26 22:38:24 +00:00
Gregory Montoir 82adbc025d some fixes for FOTAQ Amiga versions, cleanup
svn-id: r25886
2007-02-26 20:50:33 +00:00
Max Horn ac719ac5fd More dead code; augmented note on PC speaker emulation
svn-id: r25885
2007-02-26 20:44:39 +00:00
Max Horn 73188b4716 'Optimized' SquareWaveStream::readBuffer a bit, removed some dead code, and changed Snd::terminate to a destructor (this ensures client code can't forget to do just that -- not that we'd ever forget ... ;-)
svn-id: r25884
2007-02-26 20:41:52 +00:00
Max Horn 1c80f2ffa0 calling memset to zero a buffer you are about to fill with audio data is not necessary (removing this from Gob::Snd::readBuffer); removed dead code
svn-id: r25883
2007-02-26 20:32:43 +00:00
Willem Jan Palenstijn b1a12658b0 stop audio streams before deleting them
svn-id: r25882
2007-02-26 18:52:28 +00:00
Kostas Nakos 1af4932242 Fix alignment issues in wince port.
This patch/bug is closely related to the behavior shown in agos engine (see https://sourceforge.net/tracker/?func=detail&aid=1657436&group_id=37116&atid=418822).
Every time structs are used to extract data from a buffer, these structs have to be packed.
It is not OK to assume that the compiler does not pad the struct, or that it doesn't have alignment assumptions voodoo (see cited patch).

svn-id: r25881
2007-02-26 18:34:00 +00:00
Kostas Nakos 017c1b24f7 support agi engine
svn-id: r25880
2007-02-26 18:09:41 +00:00
Kostas Nakos 9f9b7d96a7 added gfx and code to support spacebar and escape keys in the virtual keyboard (remember, Jubanka couldn't draw if his life depended on it :-) ).
fixed (essentially added) support for the directional keys of the virtual keyboard (no idea why these were not implemented).

svn-id: r25879
2007-02-26 17:48:04 +00:00
Max Horn 48a401d9dd Removing dead code
svn-id: r25878
2007-02-26 12:07:20 +00:00
Max Horn a2a46c55d2 Using FLAG_AUTOFREE implies free() being called on the memory buffer you passed to the audio stream code -- hence, use malloc and not new[] to allocate the buffer
svn-id: r25877
2007-02-26 11:16:31 +00:00
Travis Howell 08fc65bef9 Add demo of Waxworks.
svn-id: r25876
2007-02-26 07:13:54 +00:00
Paul Gilbert 4f8c66b4cc Added saving of the random actions set state, and implemented NPC opcode 29, which allows for an NPC to be given a custom talk record
svn-id: r25875
2007-02-26 02:50:23 +00:00
Paul Gilbert 04159e0622 Added extra talk records needed by NPC opcode 29, which lets the script engine override an NPC's current talk record
svn-id: r25873
2007-02-26 02:46:32 +00:00
Gregory Montoir ca597dbf50 reduced code dup, Queen::LineReader -> SeekableReadStream::readLine
svn-id: r25871
2007-02-25 22:24:11 +00:00
Nicola Mettifogo c9f652dc1f made Archive inherit from SeekableReadStream instead of File since write capabilities and file handle are not needed. Implementation of SeekableReadStream virtual functions is now complete.
svn-id: r25870
2007-02-25 22:17:41 +00:00
Max Horn d74a339424 Fix warnings
svn-id: r25869
2007-02-25 22:13:38 +00:00
Nicola Mettifogo c7734857e1 made Archive inherit from Common::File, added some methods to comply to interface, changed callers to exploit readByte capabilities
svn-id: r25868
2007-02-25 21:40:15 +00:00
Nicola Mettifogo 420a7c5f75 made Archive behave more like Common::File, preparing for inheritance
svn-id: r25867
2007-02-25 21:04:51 +00:00
Nicola Mettifogo cacff9a9f2 wrapped archive routines into a new class named Archive. File-level static variables have been made members of the new class.
svn-id: r25866
2007-02-25 20:35:47 +00:00
Nicola Mettifogo 0c77177ef1 oops. Forgot the very last reference.
svn-id: r25865
2007-02-25 20:18:11 +00:00
Nicola Mettifogo 7c5600724b got rid of ArchievedFile. Since only one single file is being read from the archives at every moment, the ArchivedFile structure used for bookkeeping is useless.
svn-id: r25864
2007-02-25 20:12:23 +00:00
Gregory Montoir f68105912a fixed background music in catalog_cup_demo_de : only stop sfx if it was started in a previous block
svn-id: r25863
2007-02-25 19:15:00 +00:00
Gregory Montoir 4af53c56e9 changed all hard-coded filenames to uppercase, for consistency
svn-id: r25862
2007-02-25 19:10:59 +00:00
Max Horn 2cbe50c5ec Typo
svn-id: r25861
2007-02-25 19:08:57 +00:00
Gregory Montoir c5f5583ded added AmigaSound::playRandomPatternJungle, minor cleanup
svn-id: r25860
2007-02-25 19:01:59 +00:00
Max Horn 198f32ea8e Add some doxygen comments to Common::Stream
svn-id: r25859
2007-02-25 18:35:51 +00:00
Max Horn 7287ce2a4c Typo
svn-id: r25858
2007-02-25 18:26:33 +00:00
Eugene Sandulenko 4a9e7acc28 Update MSVC project files.
svn-id: r25857
2007-02-25 14:50:16 +00:00
Eugene Sandulenko 393478a143 Rename C64 file to V0 as well.
svn-id: r25856
2007-02-25 14:47:51 +00:00