Commit Graph

320 Commits

Author SHA1 Message Date
Torbjörn Andersson
934fe91620 Clear the sound queue when starting a cutscene. They usually (always?)
herald a change of scene, so it should be ok. And it keeps the crackling
fire at the end from playing over the end credits and the End of Game
dialog afterwards.

(If we change the sound engine to do looping manually, instead of letting
the mixer handle it, the looping will not be seamless and we'll still get
the crackling fire over the dialog after the credits.)

This change is probably safe for 0.8.1, assuming we make one.

svn-id: r19387
2005-11-01 18:52:21 +00:00
Robert Göffringmann
70ea15410d removed old and unused defines.
svn-id: r19304
2005-10-26 06:37:09 +00:00
Robert Göffringmann
ccd7557a87 added call to OutSaveFile::flush() and some more I/O error checks
svn-id: r19302
2005-10-26 06:30:28 +00:00
Robert Göffringmann
722e9a7986 fix for bug #1328022: BS1: savegame name text input ignores keypresses
svn-id: r19300
2005-10-26 06:16:14 +00:00
Robert Göffringmann
6cb96049fb include the datafile's name in error() message when I/O errors occur.
svn-id: r19291
2005-10-26 05:33:23 +00:00
Robert Göffringmann
0aaecdcf2f fix for bug #1153682:
BS1: 64-bit crash when menu appears

svn-id: r19290
2005-10-26 05:06:52 +00:00
Max Horn
ae6fb05c8f Unified Broken Sword 1 & 2 name (instead of I & II) -- usage is more consistent with other numerically numbered games (and also internally consistent). Work in progress.
svn-id: r19249
2005-10-23 10:03:28 +00:00
Torbjörn Andersson
6e6a2f3187 Changed some spaces to tabs
svn-id: r19191
2005-10-20 13:08:43 +00:00
Eugene Sandulenko
b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Torbjörn Andersson
4a9bf82143 Decrease delay while editing savegame name. This way, there should be much
less risk of keypresses being lost.

svn-id: r19128
2005-10-17 07:15:18 +00:00
Torbjörn Andersson
8b1e22e964 Be more careful when subtracting from unsigned values. Fixes bug #1327972.
svn-id: r19110
2005-10-16 15:06:51 +00:00
Marcus Comstedt
ee15539952 Try do display the virtual keyboard only when a string input widget has focus.
svn-id: r19102
2005-10-15 15:46:12 +00:00
Chris Apers
037665a1b3 Not needed
svn-id: r19038
2005-10-12 19:41:57 +00:00
Torbjörn Andersson
27334a55d7 Marked all these structs as packed, except CollisionData, which I have
removed because it wasn't used. Does this make any difference at all on
64-bit architectures in general, and bug #1153682 in particular?

svn-id: r18856
2005-09-21 12:06:52 +00:00
Torbjörn Andersson
d28cb8931e After saving, return to the game instead of the main control panel. This is
how the original did it (the DOS version, at least -- I couldn't get the
Windows version to install under Wine), and is part of RFE #1273746.

svn-id: r18795
2005-09-09 07:32:29 +00:00
Max Horn
3f2286031a Avoid putting non-ASCII chars into source files
svn-id: r18761
2005-09-03 19:59:33 +00:00
Torbjörn Andersson
2174c6f49c Implement looping sounds. This should fix bug #1273741, hopefully without
causing any problems. (I assume either the game scripts or the engine will
make sure that looped sounds are stopped.)

svn-id: r18713
2005-08-26 12:50:54 +00:00
Torbjörn Andersson
41e9aa2f2c Added keyboard repeating.
svn-id: r18711
2005-08-25 15:33:38 +00:00
Torbjörn Andersson
3140dbebc4 The dialog windows now react to "Enter" and "Escape" in what I hope is a
sensible way. This is an extension of feature request #1265893.

svn-id: r18710
2005-08-24 16:10:09 +00:00
Jonathan Gray
603a5e4d6f Don't explicity check for tremor and vorbis everywhere and
require both USE_TREMOR and USE_VORBIS to be defined when
using tremor.

svn-id: r18642
2005-08-10 12:42:56 +00:00
Jonathan Gray
3c1b5648ae Rest of the changes required for tremor to actually work.
Based on patches against 0.7.1 by Jolan Luff.

svn-id: r18641
2005-08-10 06:16:26 +00:00
Eugene Sandulenko
6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Torbjörn Andersson
35cb8fb875 For consistency, specify directory when including files.
svn-id: r18447
2005-06-24 16:01:42 +00:00
Max Horn
8b1d7b9166 When including files from common/, explicitly use the common/ prefix
svn-id: r18444
2005-06-24 15:23:51 +00:00
Max Horn
2de46dc8eb Moved some more stuff to namespace Audio (enough for tonight)
svn-id: r18040
2005-05-11 00:01:44 +00:00
Max Horn
1a615346ab Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' because we already have many classes with that name)
svn-id: r18039
2005-05-10 23:48:48 +00:00
Max Horn
72f4c03b0b Moved (In/Out)SaveFile(Manager) and Timer to namespace Common
svn-id: r18038
2005-05-10 23:17:38 +00:00
Max Horn
b75c969e66 Moved class File and the MD5 stuff to namespace Common
svn-id: r18037
2005-05-10 22:56:25 +00:00
Max Horn
cca744f69a Comply to our coding conventions
svn-id: r17975
2005-05-08 21:49:52 +00:00
Torbjörn Andersson
42ae68ff37 Whitespace
svn-id: r17891
2005-05-01 17:55:45 +00:00
Robert Göffringmann
f28c3d14a3 fixed filehandling bug
svn-id: r17830
2005-04-27 02:16:34 +00:00
Max Horn
e79c168d35 split SaveFileManager::openSavefile and class SaveFile into two, each, one for loading and one for saving
svn-id: r17517
2005-04-10 15:13:40 +00:00
Jonathan Gray
24c92d0091 Remove usage of vsprintf in favour of vsnprintf and make
more use of STRINGBUFLEN.  Some ports may need a new stub for
this, discussed with Chrilith.

svn-id: r17463
2005-04-09 01:52:44 +00:00
Torbjörn Andersson
d5b2582aa5 Missed these.
svn-id: r17428
2005-04-07 08:50:48 +00:00
Torbjörn Andersson
4d33534938 Applied some ScummVM formatting conventions.
svn-id: r17427
2005-04-07 08:42:40 +00:00
Max Horn
9a4bc8ce16 Patch #1117443 (Experimental plugin code revision)
svn-id: r17231
2005-03-25 17:55:57 +00:00
Max Horn
7cd2cb2b17 PlayingSoundHandle -> SoundHandle; also, turned the handle activity check into a mixer method
svn-id: r17106
2005-03-12 18:56:09 +00:00
Torbjörn Andersson
a52de03324 Renamed variables in the MPEG animation classes to better conform with
ScummVM standard. It seems the 8-bit version of the code had decayed
slightly, but I believe it's working again now.

svn-id: r17081
2005-03-11 15:30:28 +00:00
Chris Apers
d27f4116f4 Cleanup
svn-id: r17080
2005-03-11 11:06:45 +00:00
Max Horn
0ec193b4be changing AudioDataType -> SoundType, so now the constant names match the name of the data type / the SoundMixer method names
svn-id: r17052
2005-03-09 18:12:54 +00:00
Torbjörn Andersson
e3105f926b Applied patch #1155731, reducing the memory usage of the MPEG player by
about 8 MB.

svn-id: r17007
2005-03-06 14:12:40 +00:00
Torbjörn Andersson
224e0b7aa4 Fixed warning.
svn-id: r16847
2005-02-21 08:15:15 +00:00
Robert Göffringmann
78533d416f Changed mutex usage.
It now unlocks the mutex while it's loading mp3/ogg/wave data in order to have the sound thread play normally.
The ps2's cd/dvd drive is too slow to transfer the entire file within a few millisecs, so it made the sound skip.

svn-id: r16831
2005-02-20 19:06:09 +00:00
Robert Göffringmann
b455a94e0f cache datafile handles instead of opening and closing all files hundreds of times per second. I noticed that behaviour on the PS2. The cd/dvd drive was waaaay too slow for it. ;)
svn-id: r16830
2005-02-20 18:53:30 +00:00
Max Horn
86370fa544 BS1 specific fix for bug #1107121 (ALL/SFX: Setting the SFX volume at 256 mutes sound)
svn-id: r16746
2005-02-06 20:31:20 +00:00
Max Horn
abd12dd1b6 Use class Mutex instead of MutexRef
svn-id: r16679
2005-01-28 22:05:51 +00:00
Jonathan Gray
81e9e0da72 Fix compilation when vorbis is disabled and mpeg2 is enabled.
Pointed out by Michael Sterrett on irc.

svn-id: r16620
2005-01-23 03:26:54 +00:00
Max Horn
2d2cef23a0 Not needed anymore
svn-id: r16565
2005-01-15 21:44:26 +00:00
Max Horn
05662db4dc Use loadWAVFromStream
svn-id: r16552
2005-01-13 16:28:20 +00:00
Max Horn
f3f1d6be87 Legal header
svn-id: r16531
2005-01-10 22:43:21 +00:00