Commit Graph

848 Commits

Author SHA1 Message Date
Max Horn
bd8831487f Renamed variables to match our naming conventions; added Sound::isVoiceActive() method; made some more members of class Sound private
svn-id: r17958
2005-05-08 12:33:25 +00:00
Travis Howell
21717273b4 No need to check for speech file in non-talkie versions.
svn-id: r17952
2005-05-08 05:56:09 +00:00
Travis Howell
169c85a19b Auto detect effect file type in Simon the Sorcerer 1.
svn-id: r17951
2005-05-08 05:23:31 +00:00
Travis Howell
0bcd57e87f Cleanup
svn-id: r17950
2005-05-08 04:54:08 +00:00
Travis Howell
d9b81f4ab8 Fix sound regressions.
svn-id: r17948
2005-05-08 02:50:43 +00:00
Travis Howell
3cbaf48932 Cleanup
svn-id: r17934
2005-05-06 13:22:48 +00:00
Travis Howell
6e06194dd9 Ooops
svn-id: r17932
2005-05-06 12:29:37 +00:00
Travis Howell
1057d5fa69 Rename sprite field.
Cleanup.

svn-id: r17931
2005-05-06 12:23:19 +00:00
Travis Howell
076e42c302 Use ScummVM code formatting for names.
svn-id: r17930
2005-05-06 11:37:33 +00:00
Travis Howell
947be5edc2 Rename sprite field.
Cleanup

svn-id: r17928
2005-05-06 08:46:45 +00:00
Travis Howell
c8b17da61c Auto detect music and voice types, where possible.
Use correct set of MIDI tracks for MT32 in Simon the Sorcerer 2.

svn-id: r17925
2005-05-06 03:09:53 +00:00
Max Horn
ce3cd9b194 Changed the semantics of debug level 0 from off back to something more similiar to how it used to be (default debug level now is -1)
svn-id: r17788
2005-04-24 12:21:53 +00:00
Max Horn
5626581da8 These structs must be packed
svn-id: r17770
2005-04-23 14:00:51 +00:00
Max Horn
8fddaada1d Simplified debuglevel handling:
- it's only honored in the global level of the config file
 - all checks for it go through gDebugLevel now, which is made global
 - the '-d' switch is handled in a slightly saner and consistent way
 - removed 'debuglevel' from the config format documentation; we do
   not want to encourage the avarage user to use it

svn-id: r17769
2005-04-23 13:52:27 +00:00
Max Horn
88d0b6cc44 Only modify gDebugLevel, not the transient config
svn-id: r17754
2005-04-22 20:04:25 +00:00
Max Horn
969ef3dac9 * Added new virtual base class 'Stream', ReadStream and
WriteStream are now subclasses of it.
* Added new methods eos(), ioFailed(), clearIOFailed() to
  all streams. This allows better error checking.
* SaveFile classes take advantage of these new standard
  stream APIS
* Removed File::gets()
* Added SeekableReadStream::readLine() (replaces File::gets)
* Added WriteStream::writeString, for convenience

svn-id: r17752
2005-04-22 17:40:09 +00:00
Travis Howell
dfaf0145da Add tempo fix for simon1demo music, from bug #1164263.
svn-id: r17677
2005-04-19 06:25:35 +00:00
Max Horn
839c8add38 Get rid of errno; add some (optional) error checking facilities to SaveFile classes (they are ugly, and to simple, but better than nothing)
svn-id: r17589
2005-04-13 18:36:55 +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
c7bb5eacda Whitespace
svn-id: r17438
2005-04-07 12:11:35 +00:00
Jerome Fisher
eda317924e Committed patch #1168149 (Shared GM/MT-32 mapping) by eriktorbjorn as-is. This does the following:
- Replaces multiple identical MT-32-to-General MIDI mapping tables with a common one in MidiDriver.
- Changes Sky's GmChannel class to allow NULL instrument and velocity mapping tables, giving a 1-to-1 mapping without creating a dummy table.

svn-id: r17361
2005-04-03 22:01:38 +00:00
Travis Howell
59331fe535 Add another French version
svn-id: r17310
2005-03-31 15:12:13 +00:00
Nicolas Bacca
8c37cd52a6 Quit game with 'Action key' on WinCE Smartphones
svn-id: r17246
2005-03-26 14:09:21 +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
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
Max Horn
abd12dd1b6 Use class Mutex instead of MutexRef
svn-id: r16679
2005-01-28 22:05:51 +00:00
Travis Howell
1d86d0599d Set SFX volume correctly
svn-id: r16612
2005-01-22 02:01:22 +00:00
Travis Howell
3b637456aa Set SFX volume correctly.
svn-id: r16611
2005-01-22 01:47:07 +00:00
Travis Howell
211ec4c32a Change SIMON to use makeWAVStream - patch #1101740
svn-id: r16555
2005-01-14 00:38:54 +00:00
Max Horn
cffd917165 system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
svn-id: r16527
2005-01-10 22:06:49 +00:00
Max Horn
7df70de2b1 Mark some places which probably should use loadWAVFromStream(); maybe some of the engine maintainers can look into using it
svn-id: r16503
2005-01-09 15:57:38 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
d299f0601b Reducing header dependencies a bit
svn-id: r16347
2004-12-27 22:08:20 +00:00
Max Horn
d138a880bf Fix for bug #1091748 (DIG: Starting new games takes a long time); turns out querying the debuglevel from the config-manager very often is too slow
svn-id: r16345
2004-12-27 21:54:20 +00:00
Max Horn
67b311713d Added 'sound types' to the mixer - for now, only plain (for the premixer), SFX and music; volume is now controlled based on the sound type
svn-id: r16330
2004-12-27 00:27:00 +00:00
Max Horn
d6872dba6b Get rid of g_debugLevel (this fixes bug #1091142)
svn-id: r16318
2004-12-25 19:04:18 +00:00
Chris Apers
67f803224c Move this too
svn-id: r16162
2004-12-20 16:45:17 +00:00
Max Horn
06315c1ce1 A little more cleanup (the Simon code really is a big mess :-)
svn-id: r16107
2004-12-18 02:08:32 +00:00
Max Horn
0ceb634fd4 constify simon engine; turned global var vc_get_out_of_code into a member of class SimonEngine
svn-id: r16106
2004-12-18 01:33:21 +00:00
Torbjörn Andersson
c61894ee65 This file no longer needs to include <errno.h>, and from what I understand
we already got the appropriate include for time() through stdafx.h, so we
don't need to include <time.h> either.

svn-id: r16093
2004-12-17 07:59:05 +00:00
Max Horn
ea80946978 Using errno isn't really portable; don't have time to fix this properly right now
svn-id: r16086
2004-12-16 19:18:17 +00:00
Travis Howell
55549cd3b2 Split simon.cpp more for PalmOS port.
svn-id: r16078
2004-12-16 12:49:25 +00:00
Travis Howell
a1934c99c6 Typo
svn-id: r16067
2004-12-15 23:52:45 +00:00
Gregory Montoir
c878e6cc4d memory leak
svn-id: r16063
2004-12-15 20:25:50 +00:00
Max Horn
3891c0fa39 change loadVOCFromStream to take a reference instead of a pointer (to a stream)
svn-id: r16035
2004-12-11 23:34:34 +00:00
Robert Göffringmann
0d7ab01640 Pass subdirectories to gamedetector functions
svn-id: r16002
2004-12-09 15:06:49 +00:00
Max Horn
f09293b22c Clean up OSystem::Event
svn-id: r15990
2004-12-05 17:42:20 +00:00
Max Horn
5d5a13eec7 Moved MidiDriver creation code into the MidiDriver class (as static methods), same for some other MIDI related stuff
svn-id: r15968
2004-12-02 00:33:42 +00:00