Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn
4b996e7de7
Reorder params to Audio::makeRawMemoryStream
...
svn-id: r47492
2010-01-23 23:55:35 +00:00
Max Horn
cebaa0b0d3
Started to get rid of Audio::FLAG_LOOP
...
svn-id: r47397
2010-01-19 23:50:33 +00:00
Max Horn
dc5e08e623
Move raw audio flags from sound/mixer.h to sound/raw.h
...
svn-id: r47395
2010-01-19 22:30:33 +00:00
Fabio Battaglia
bd4e6283af
sword1: removed a leftover semicolon
...
svn-id: r47379
2010-01-19 11:30:41 +00:00
Max Horn
c01ef60cb9
SWORD1: Fix memory leak in PSX audio code (seems to have been there for quite some time?)
...
svn-id: r47378
2010-01-19 11:22:54 +00:00
Max Horn
5ee6c79b5d
Convert more engines from Mixer::playRaw to Mixer::playInputStream
...
svn-id: r47377
2010-01-19 11:22:14 +00:00
Max Horn
b227c660c6
Remove loop start/end params from Mixer::playRaw; convert some code from Mixer::playRaw to Mixer::playInputStream
...
svn-id: r47375
2010-01-19 11:20:58 +00:00
Max Horn
9baa2acdca
SWORD1: Fix (?) sfx looping
...
svn-id: r47370
2010-01-19 00:56:52 +00:00
Max Horn
557bb394de
Get rid of Mixer::FLAG_AUTOFREE.
...
Also fix several recently introduced new/delete vs. malloc/free mismatches.
svn-id: r47369
2010-01-19 00:56:29 +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
Johannes Schickel
f263393ef0
Fix sound effects in Sword1 PSX, regression from r47132.
...
svn-id: r47176
2010-01-08 21:47:28 +00:00
Torbjörn Andersson
3a163b960e
This should fix bug #2928411 , "SWORD1: Macintosh Demo crashes after Intro".
...
svn-id: r47171
2010-01-08 19:58:47 +00:00
Johannes Schickel
549da55565
Remove custom AiffAudioStream and replace it by the use of makeLoopingAudioStream and makeAIFFStream.
...
svn-id: r47165
2010-01-08 17:42:05 +00:00
Johannes Schickel
aa2f55ddc6
Remove the deprecated FLAC, Vorbis and MP3 factories.
...
svn-id: r47134
2010-01-07 17:14:44 +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
Marcus Comstedt
40f9506163
The default keycolor for mouse pointers used to be 255.
...
This makes sense as a default for CLUT8 modes, but not really
for anything else. As part of the gsoc2009-16bit merge, the
default was changed to "all ones", with extra code in the SDL
backend to truncate this to the depth of the mode. However,
"all ones" (white) still isn't a very useful default for RGB modes.
So rather than jumping through hoops to provide a bad default,
it's better to remove the default altogether. Engines which relied
on the old default of 255 have been updated to specify it explicitly.
svn-id: r47118
2010-01-07 15:07:36 +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
Torbjörn Andersson
72eb9ec9ea
Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
...
before freeing it, which isn't necessary.
svn-id: r46941
2010-01-03 19:37:43 +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
Torbjörn Andersson
42af771de0
Fixed regression introduced when adding support for looping background sounds.
...
A.k.a. "I played through the whole game looking for regressions, and missed the
one at the intro cutscene?!"
svn-id: r45290
2009-10-20 20:15:13 +00:00
Max Horn
b935f0119a
SWORD1: Resolve FIXME about weird static var 'left' in Router::slidyWalkAnimator
...
svn-id: r45280
2009-10-20 19:11:46 +00:00
Max Horn
08fb97ee59
SWORD1: Resolve FIXME about weird static var 'k' in Router::smoothCheck
...
svn-id: r45279
2009-10-20 19:11:22 +00:00
Filippos Karapetis
422b732dba
Added a new convenience method to the video player, which adds the event of skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used
...
svn-id: r45151
2009-10-16 07:42:23 +00:00
Max Horn
edf6827913
SWORD1: Remove obsolete TODO
...
svn-id: r45100
2009-10-14 23:29:14 +00:00
Max Horn
6a2985ba08
Patch #2834677 : Wave/ADPCM Endianness Fixes
...
svn-id: r45095
2009-10-14 22:37:05 +00:00
Fabio Battaglia
e2db155b1a
sword1: fix one gcc warning about comparison between signed and unsigned
...
svn-id: r44955
2009-10-11 22:34:01 +00:00
Fabio Battaglia
e1dc8452bd
sword1: fix psx demo startup
...
svn-id: r44951
2009-10-11 22:20:58 +00:00
Max Horn
42120ed626
Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
...
svn-id: r44793
2009-10-08 19:41:38 +00:00
Johannes Schickel
d134eb73ce
Add missing PACKED_STRUCT attribute to FrameHeader.
...
svn-id: r44614
2009-10-04 15:49:40 +00:00
Andre Heider
bbb3cc8086
If make*Stream failed, the file needs to be closed to prevent an assert on a consecutive open().
...
svn-id: r44557
2009-10-03 19:29:14 +00:00
Willem Jan Palenstijn
5a8b81119b
Fix free/delete/delete[] mismatches. Patch by salty-horse
...
svn-id: r44512
2009-10-01 11:02:23 +00:00
Max Horn
8ba75fc522
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
...
svn-id: r44495
2009-09-30 16:16:53 +00:00
Filippos Karapetis
b4f1960318
Reverted parts of revisions #44298 , #44299 and #44300 , to prevent warnings and issues in compilers which don't support NORETURN
...
svn-id: r44314
2009-09-24 17:52:53 +00:00
Filippos Karapetis
6b79910bcb
Fixed some more warnings about unreachable code
...
svn-id: r44300
2009-09-24 10:15:50 +00:00
Johannes Schickel
c50940bbf4
Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
...
svn-id: r44266
2009-09-23 00:15:00 +00:00
Torbjörn Andersson
9cc0dc3d91
Fixed bug #2847910 , "Loss of background audio loop". It would probably be safe
...
to backport this to the 1.0 branch, but I'm not 100% sure, and it's getting
pretty late here. (On the other hand, the missing sound effects are pretty
faint, at least in the cases I've seen, so we haven't been missing much. That's
probably why it's gone unnoticed until now.)
svn-id: r44073
2009-09-13 21:38:47 +00:00
Torbjörn Andersson
b21b200a95
Clarify things a bit by using the constant name rather than zero.
...
svn-id: r44072
2009-09-13 21:12:05 +00:00
Jordi Vilalta Prat
3337be7b08
Fix indentation
...
svn-id: r43837
2009-08-30 20:50:23 +00:00
Max Horn
e9cd07e582
SWORD1 & SWORD2: Replaced ioFailed by err+eos
...
svn-id: r42912
2009-07-29 21:39:34 +00:00
Torbjörn Andersson
f853376379
Fixed drawing subtitles for cutscenes that are narrower than the screen, and
...
erase the subtitles manually if they are drawn outside the frame.
svn-id: r42859
2009-07-28 17:19:33 +00:00
Johannes Schickel
7e71865e91
Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
...
svn-id: r42751
2009-07-25 12:59:46 +00:00
Kari Salminen
264e44d14a
Fix some typos and grammar in sword1's Sound::checkSpeechFileEndianness-function's comments.
...
svn-id: r42477
2009-07-14 13:48:31 +00:00
Kari Salminen
242b7ef708
Fix compilation under Windows (The fabs-calls were causing error C2668 about 'ambiguous call to overloaded function').
...
svn-id: r42440
2009-07-13 17:09:40 +00:00
Eugene Sandulenko
bd91c1129d
Patch #1936137 : "Speech for Mac BS1 english"
...
svn-id: r42423
2009-07-12 18:52:38 +00:00