Torbjörn Andersson
10bd159d0d
SWORD2: Add assert()s prompted by code analysis warnings.
...
See bug #3087857 .
svn-id: r53509
2010-10-15 19:08:56 +00:00
Max Horn
4ccce19876
ENGINES: Enhance namespace comments a bit
...
svn-id: r53484
2010-10-15 12:48:19 +00:00
Torbjörn Andersson
e5ec399c55
SWORD2: Fix some code analysis warnings (bug #3087857 )
...
svn-id: r53467
2010-10-15 06:12:23 +00:00
Torbjörn Andersson
54b2a8c98d
JANITORIAL: Cleanup (mostly whitespace)
...
svn-id: r53161
2010-10-12 04:19:58 +00:00
Eugene Sandulenko
6106868188
SWORD2: More safeguards for mute setting
...
svn-id: r52825
2010-09-20 20:31:56 +00:00
Eugene Sandulenko
723a94099e
SWORD25: Fix bug #3032763 : "SWORD2: Mute setting does not work"
...
svn-id: r52823
2010-09-20 20:18:35 +00:00
Eugene Sandulenko
5b18bb1aa1
SWORD2: Plug memory leaks.
...
svn-id: r52795
2010-09-18 12:42:23 +00:00
Torbjörn Andersson
cc6f4f4cdc
SWORD2: Improve sync between local and global "mute" settings
...
Broken Sword 2's options dialog allows you to mute any of speech, sound
and sound effects, whereas ScummVM's options dialog just has one
"master" mute setting. This is an attempt to keep them better in sync,
though it's not perfect. Still, it may be good enough to fix bug
#3032763 ("SWORD2: Mute setting does not work").
svn-id: r51218
2010-07-23 19:52:58 +00:00
Max Horn
0b48a71c99
Remove PalmOS port
...
svn-id: r50964
2010-07-17 18:41:38 +00:00
Max Horn
1d4c82885d
DEBUGGER: Simplify how our console debugger works / is used
...
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
document it.
* Add more doxygen comments
* Cleanup
svn-id: r50963
2010-07-17 18:38:42 +00:00
Torbjörn Andersson
d20ae841dd
Cleanup.
...
svn-id: r50923
2010-07-16 03:07:30 +00:00
Torbjörn Andersson
1b294306dd
Another video player regression: When the palette changes, look up the
...
lightest/darkest available colours to use as white/black for the subtitles. It
is possible that we could get away with fixed values for Broken Sword 2, since
it has always had subtitles. But for Broken Sword 1, subtitles is a ScummVM
addition, and we can't.
svn-id: r49154
2010-05-23 11:16:10 +00:00
Torbjörn Andersson
8ed56e1834
Keep the Broken Sword cutscene players from using up all available CPU.
...
Probably a regression from the recent video decoder rewrite, but I haven't
checked if it also present in other engines.
svn-id: r49153
2010-05-23 10:50:14 +00:00
Matthew Hoops
11cbdd0318
Committing the rest of the VideoDecoder Rewrite from patch #2963496 .
...
svn-id: r49079
2010-05-18 14:17:24 +00:00
Matthew Hoops
c7fa1074fb
Change VideoDecoder::getCurFrame() to mean the last frame drawn instead of the next frame to draw. This is patch 1 from patch #2963496 (VideoDecoder Rewrite).
...
svn-id: r49063
2010-05-17 21:59:05 +00:00
Torbjörn Andersson
83a25d2e37
Fixed a regression that caused some speech in cutscenes to not be played.
...
svn-id: r49037
2010-05-15 08:54:58 +00:00
Torbjörn Andersson
2da9fa5a6e
Rewrote playMovieSound() to keep it from hogging memory in the resource
...
manager. Perhaps this will finally fix the mysterious bug #2976008 ("BS2: Game
lockup in British Museum").
svn-id: r49036
2010-05-15 08:38:19 +00:00
Torbjörn Andersson
e4a4df960a
Make sure that all the parameters to an mcode command are initialised. This
...
fixes one Valgrind warning mentioned in bug #2976008 ("BS2: Game lockup in
British Museum"), though I don't have high hopes that they are related.
svn-id: r48961
2010-05-06 19:00:39 +00:00
Max Horn
b3e404109c
Move initGraphics and initCommonGFX from to new header.
...
These functions are only used internally be Engine subclasses, and
by moving them to a separate header we can reduce indirect header
dependencies.
svn-id: r48934
2010-05-04 11:58:12 +00:00
Max Horn
5568a8473b
Get rid of Engine::_gameDataDir.
...
This greatly reduces indirect dependencies on several header files
from common.
svn-id: r48933
2010-05-04 11:56:52 +00:00
Max Horn
6d80424908
Fix warnings when FLAC&MP3&VORBIS is disabled; also fixes leak in Tinsel
...
svn-id: r48696
2010-04-17 23:57:50 +00:00
Torbjörn Andersson
499e58caf0
This should fix the scaler Valgrind warning reported in (but probably not the
...
cause of) bug #2976008 ("BS2: Game lockup in British Museum").
svn-id: r48692
2010-04-17 17:23:30 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Torbjörn Andersson
d38f71c1e4
Added an "fxq" debugger command to print the FX queue. I guess it might help in
...
debugging the "No free slot in FX queue!" bug I've heard of but never actually
seen. (See for instance bug #2976008 , "BS2: Game lockup in British Museum".)
svn-id: r48458
2010-04-01 16:11:29 +00:00
Max Horn
cac0ac66e2
COMMON: Get rid of Common::StringList
...
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
d78dba3bca
COMMON: Move Common::RandomSource to common/random.*
...
svn-id: r48279
2010-03-18 15:07:11 +00:00
Yotam Barnoy
ef330ed9b4
Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
...
svn-id: r48101
2010-02-21 04:04:13 +00:00
Johannes Schickel
8ae24a27b3
Yet more Flac -> FLAC changes for consistency.
...
svn-id: r47847
2010-02-03 09:42:40 +00:00
Johannes Schickel
fe35d372da
- Rename FlacStream to FLACStream.
...
- Rename makeFlacStream to makeFLACStream.
svn-id: r47846
2010-02-03 09:42:11 +00:00
Max Horn
1c906a1f08
Hide VagStream implementation, only expose it via a factory method
...
svn-id: r47634
2010-01-28 09:38:21 +00:00
Max Horn
1565f14bc1
Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
...
svn-id: r47579
2010-01-26 22:48:45 +00:00
Torbjörn Andersson
1928a7ba38
Silenced some cppcheck warnings.
...
svn-id: r47427
2010-01-21 23:05:33 +00:00
Max Horn
7ec2da968c
Switch most AudioStream factories to use DisposeAfterUse::Flag
...
svn-id: r47334
2010-01-16 21:36:08 +00:00
Max Horn
a44c6e4323
Add Mixer::getElapsedTime() method returning a Timestamp, thus offering a higher precision than Mixer::getSoundElapsedTime(). Convert some video code to use it.
...
svn-id: r47213
2010-01-09 22:37:10 +00:00
Max Horn
f720d99b0a
Switch Mixer::playInputStream to use DisposeAfterUse::Flag
...
svn-id: r47182
2010-01-08 22:09:43 +00:00
Max Horn
0cf53b025d
Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
...
svn-id: r47180
2010-01-08 22:07:35 +00:00
Johannes Schickel
616e4626f5
Since AudioStream looping is no longer handled by the Mixer, drop Mixer::playAudioStreamLooping. (There's Audio::makeLoopingAudioStream).
...
svn-id: r47160
2010-01-08 16:27:29 +00:00
Johannes Schickel
b47725540f
Cleanup.
...
svn-id: r47133
2010-01-07 17:04:32 +00:00
Johannes Schickel
a597e5fef9
Make VagStream a RewindableAudioStream.
...
svn-id: r47132
2010-01-07 17:04:01 +00:00
Johannes Schickel
d5fe29c3c9
Make makeWAVStream return a RewindableAudioStream.
...
svn-id: r47129
2010-01-07 16:34:56 +00:00
Johannes Schickel
84f3034406
- Move openStreamFile from AudioStream to SeekableAudioStream.
...
- Fix documentation of openStreamFile.
svn-id: r47080
2010-01-06 15:23:33 +00:00
Max Horn
df81b68967
Change BS 1 & 2 to I & II (see discussion on -devel)
...
svn-id: r46951
2010-01-03 21:20:05 +00:00
Max Horn
d083e02215
Rename Common::Stream::readLine_NEW to readLine
...
svn-id: r46779
2009-12-30 23:00:55 +00:00
Torbjörn Andersson
6d52bce14f
Corrected an old comment.
...
svn-id: r46768
2009-12-30 19:06:34 +00:00
Torbjörn Andersson
8ec098d016
Fixed some simple cppcheck warnings.
...
svn-id: r46303
2009-12-09 06:33:00 +00:00
Max Horn
df651bf20f
Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
...
svn-id: r46128
2009-11-24 22:10:14 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
6d9cb7ab14
SWORD2: Turned static vars in Logic::fnISpeak into member vars of class Logic
...
svn-id: r45284
2009-10-20 19:51:32 +00:00
Max Horn
c5c12130f5
SWORD2: Resolve FIXME about weird static var 'k' in Router::smoothCheck
...
svn-id: r45282
2009-10-20 19:12:31 +00:00
Max Horn
774eefe688
SWORD2: Resolve FIXME about static var 'left' in Router::slidyWalkAnimator
...
svn-id: r45281
2009-10-20 19:12:08 +00:00