37120 Commits

Author SHA1 Message Date
Filippos Karapetis
ee66af41a2 Fixed the hang with the new music code after the copy protection in Island of Dr. Brain
svn-id: r47870
2010-02-03 23:02:37 +00:00
Arnaud Boutonné
7e166d1ad6 clean-up : forgot commented code
svn-id: r47869
2010-02-03 22:20:33 +00:00
Arnaud Boutonné
f5764b1152 Fascination - based on the theoritical values of flag, use getWindow instead of the code I added. Suppress shr 8 in getWindow and switched from int8 to uint16, in order to match the executable.
svn-id: r47868
2010-02-03 22:14:06 +00:00
Martin Kiewitz
b2876ca9d3 SCI: some work on robot REing (still comments only)
svn-id: r47867
2010-02-03 22:06:57 +00:00
Martin Kiewitz
d09d37ff4e SCI: fixing picture corruption in sci32 (e.g. sq6 picture 430, kq7 after intro)
svn-id: r47866
2010-02-03 22:05:22 +00:00
Martin Kiewitz
da771b91e6 SCI: we checked first cel size when detecting hires instead of actual picture resolution, now checking correctly
svn-id: r47865
2010-02-03 21:59:41 +00:00
Sven Hesse
51d0365818 Loosening the 2 samples per channel requirement of Apple_ADPCMStream to 1 sample per channel
svn-id: r47864
2010-02-03 19:55:14 +00:00
Johannes Schickel
87534da624 Remove code duplication.
svn-id: r47863
2010-02-03 17:03:46 +00:00
Johannes Schickel
5030ba3596 Add tests for RawStream's seek implementation.
svn-id: r47862
2010-02-03 16:57:46 +00:00
Johannes Schickel
9da2b4eac2 Add tests for stereo mode of RawStream.
svn-id: r47861
2010-02-03 16:02:25 +00:00
Johannes Schickel
8fcaa28a7f Test various sample rates with RawStream's getLength implementation (just in case...).
svn-id: r47860
2010-02-03 16:02:04 +00:00
Johannes Schickel
6312b690de Fix bug in RawStream::getLength for 16bit streams. (Uncovered by our new unit tests yay!)
svn-id: r47859
2010-02-03 15:45:54 +00:00
Johannes Schickel
2cb82808eb Add unit test for RawStream::getLength.
svn-id: r47858
2010-02-03 15:45:29 +00:00
Johannes Schickel
e9f831c1da Some additional tests of RawStream::readBuffer.
svn-id: r47857
2010-02-03 15:45:08 +00:00
Johannes Schickel
274f6e5033 Add test for rewind functionality of RawStream.
svn-id: r47856
2010-02-03 15:44:43 +00:00
Johannes Schickel
6b2e9be345 Add tests for unsigned sample data for RawStream.
svn-id: r47855
2010-02-03 15:25:06 +00:00
Johannes Schickel
a5e4741775 Less noisy output in case something goes wrong.
svn-id: r47854
2010-02-03 15:24:44 +00:00
Johannes Schickel
c0f5a5d2d9 Test both BE and LE 16bit samples.
svn-id: r47853
2010-02-03 15:24:24 +00:00
Johannes Schickel
ba5e2b3362 Cleanup.
svn-id: r47852
2010-02-03 15:24:03 +00:00
Arnaud Boutonné
b6a824f48f Fascination - Cleanup: suppress some noisy debug output, suppress some obsolete and commented code.
svn-id: r47851
2010-02-03 12:57:47 +00:00
Filippos Karapetis
2fb37063a4 Placed all the game feature detection code in a separate class
svn-id: r47850
2010-02-03 11:02:43 +00:00
Johannes Schickel
baf6b53431 Add some (lame) first version of RawStream unit tests. Currently all it does it, checking, whether readBuffer works for 8bit and 16bit samples.
svn-id: r47849
2010-02-03 10:36:14 +00:00
Johannes Schickel
d32dfa3bb3 Make makeMP3Stream return 0 on failure too.
svn-id: r47848
2010-02-03 09:47:29 +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
Sven Hesse
9cad13957d Implementing saving/loading for Fascination. Tested in the DOS floppy versions and the Amiga version
svn-id: r47845
2010-02-03 09:32:16 +00:00
Johannes Schickel
e7d5849ac8 Rename RawAudioStream to RawStream for consistency.
svn-id: r47844
2010-02-03 09:19:16 +00:00
Johannes Schickel
286786b6af Cleanup.
svn-id: r47843
2010-02-03 09:11:55 +00:00
Johannes Schickel
9c1a42f9f5 Rename:
- FlacInputStream -> FlacStream
 - VorbisInputStream -> VorbisStream
 - MP3InputStream -> MP3Stream

svn-id: r47842
2010-02-03 08:59:10 +00:00
Johannes Schickel
c040eeca44 - Return 0 in makeVorbisStream and makeFlacStream, in case creating the stream failed.
- Add a TODO in the MP3 code for the same behavior.

svn-id: r47841
2010-02-03 08:58:52 +00:00
Sven Hesse
5115c94f35 Only show that annoying checkmouse warning for Fascination
svn-id: r47840
2010-02-03 03:26:28 +00:00
Sven Hesse
d4949d03d4 Minor style-related changes
svn-id: r47839
2010-02-03 03:25:50 +00:00
Filippos Karapetis
887ca3145e Initial implementation of text drawing for SCI2 (it's a hack for now, done the "SCI0-SCI11" way, and text splitting is wrong...)
svn-id: r47838
2010-02-03 01:36:53 +00:00
Max Horn
09046947d4 SCI: Make add_exec_stack_entry & add_exec_stack_varselector static / private
svn-id: r47837
2010-02-03 01:34:39 +00:00
Max Horn
bca7c6eef3 SCI: Move more stuff around
svn-id: r47836
2010-02-03 01:34:15 +00:00
Max Horn
bec3a0d539 cleanup
svn-id: r47835
2010-02-03 01:33:48 +00:00
Max Horn
4ecaf4d4ac SCI: restoring param of run_vm is a bool, not an int
svn-id: r47834
2010-02-03 01:33:23 +00:00
Max Horn
bb5e34a014 SCI: Get rid of EngineState::stack_segment
svn-id: r47833
2010-02-03 01:32:59 +00:00
Max Horn
b2d69649f7 SCI: Rearrange members of class EngineState
svn-id: r47832
2010-02-03 01:32:27 +00:00
Max Horn
81f7a55e8c SCI: Renamed Console::_vm to _engine
svn-id: r47831
2010-02-03 01:32:03 +00:00
Arnaud Boutonné
ac6e9e07a3 Fascination - Fix screen transition
svn-id: r47830
2010-02-03 00:51:09 +00:00
Arnaud Boutonné
86aa70ec4b Fascination - comment calls to getWindow() in checkMouse(). I think getWindow() is wrong, and to be replaced with my new check. The first window reacts !
svn-id: r47829
2010-02-02 23:45:14 +00:00
Arnaud Boutonné
f072709f25 Fascination - Add a window specific function, modify checkmouse() function in order to use it (without breaking the other games). Windows are no longer "transparent"
svn-id: r47828
2010-02-02 23:39:19 +00:00
Arnaud Boutonné
4b063230b7 Fascination - Add a define to enable/disable MDY player, as it currently generates more warnings than sounds
svn-id: r47827
2010-02-02 23:35:08 +00:00
Arnaud Boutonné
48c023cd5b Fascination - Fix one wrong wait time
svn-id: r47826
2010-02-02 23:33:10 +00:00
Max Horn
2c25dab0e7 SCI: cleanup
svn-id: r47825
2010-02-02 22:53:33 +00:00
Max Horn
4b19acf255 SCI: Use Common::List and Common::String to simplify breakpoint handling (untested)
svn-id: r47824
2010-02-02 22:52:41 +00:00
Max Horn
6c322506dd SCI: Move some code around (no code changes)
svn-id: r47823
2010-02-02 22:50:32 +00:00
Matthew Hoops
5d80990380 Fix compile without SCI32
svn-id: r47822
2010-02-02 22:31:32 +00:00
Vladimir Menshakov
21bb78b677 fixed actor glitch
svn-id: r47821
2010-02-02 21:47:51 +00:00