Commit Graph
86814 Commits
Author SHA1 Message Date
Johannes Schickel b80779824f - Strip custom looping code out of FLAC, Vorbis and MP3 streams
- Adapt the legacy make*Stream factories to use the new AudioStream subclasses
- Change return value of make*Stream back to AudioStream *

svn-id: r47111
2010-01-07 14:22:24 +00:00
Johannes Schickel 49e53ade00 Switch Mixer back to use only one Channel implementation. (partial revert of r47031 + r47034).
svn-id: r47110
2010-01-07 14:21:13 +00:00
Johannes Schickel aa92e004f5 First step of a slight revision of the new AudioStream looping API:
- Create a RewinadableAudioStream, for streams which can only be reset to the start
- Create a LoopableAudioStream, which loops a whole RewindableAudioStream
- Make SeekableAudioStream a subclass of RewindableAudioStream
- Create a SubSeekableAudioStream, which allows of limiting the range of an SeekableAudioStream to be played.

- Adapt AudioCD code.

svn-id: r47109
2010-01-07 14:20:36 +00:00
Martin Kiewitz 4701d0799c SCI: small cleanup in view drawing
svn-id: r47108
2010-01-07 13:56:56 +00:00
Martin Kiewitz 12cd066e44 SCI: fixed stupid bug in putPixelOnDisplay, fixes height of displayed hires graphics in kq6
svn-id: r47107
2010-01-07 13:30:08 +00:00
Vladimir Menshakov c37e772b8c cleaned up player, fixed invalid delete's and memory leaks
svn-id: r47106
2010-01-07 12:01:33 +00:00
Martin Kiewitz 58aab46f06 SCI: some portrait work (kq6 now shows the main bitmap as portrait, coordinates still messed up)
svn-id: r47105
2010-01-07 10:31:29 +00:00
Vladimir Menshakov 74b998657d do not render overlays over the animation sequences
svn-id: r47104
2010-01-07 10:22:31 +00:00
Lars Persson ecc5307f3f Add update of mohawk engine
svn-id: r47103
2010-01-07 10:01:38 +00:00
Lars Persson 5fa34f0415 Add browser to base.mmp
Create mohawk base mmp

svn-id: r47102
2010-01-07 10:00:51 +00:00
Eugene Sandulenko 413b4291b4 Fix warnings.
svn-id: r47101
2010-01-06 22:24:52 +00:00
Joost Peters 17feb75ae7 add new robot.cpp file
svn-id: r47100
2010-01-06 22:04:27 +00:00
Martin Kiewitz 1bea3e3873 SCI: added a new class for robot resources
svn-id: r47099
2010-01-06 21:56:31 +00:00
Vladimir Menshakov 1779a44882 better clipping for left/top sides
svn-id: r47098
2010-01-06 21:16:11 +00:00
Vladimir Menshakov d2978e3d92 added hardcoded height value
svn-id: r47097
2010-01-06 21:03:52 +00:00
Martin Kiewitz 72ecf8b61e SCI: add robot/.rbt files to resourcemanager class
svn-id: r47096
2010-01-06 20:54:18 +00:00
Vladimir Menshakov dfc039e4be better z-ordering for the mark's animation
svn-id: r47095
2010-01-06 20:49:16 +00:00
Vladimir Menshakov 1f12957a50 fixed special agents blink
svn-id: r47094
2010-01-06 20:39:17 +00:00
Johannes Schickel b6fb8b349a Fix FLAC's getLength implementation.
svn-id: r47093
2010-01-06 20:25:19 +00:00
Vladimir Menshakov b6b8a23cee implemented clipping for mark
svn-id: r47092
2010-01-06 20:25:07 +00:00
Johannes Schickel f32aeb01bf Add a constructor to Timestamp, which allows for specifying seconds + start frames directly.
svn-id: r47091
2010-01-06 20:24:56 +00:00
Walter van Niftrik fc582c0e59 SCI: Fix overflow in LZS decompressor
svn-id: r47090
2010-01-06 20:22:00 +00:00
Martin Kiewitz edc7fcf121 SCI: sync displayScreen with framebuffer after successful video playback (fixes background vanishing in mainmenu of gk1demo)
svn-id: r47089
2010-01-06 18:59:39 +00:00
Martin Kiewitz 11d9f15010 SCI: search for %J in text resources to identify japanese games, switch to upscaled hires when japanese games are started, removed TODO
svn-id: r47088
2010-01-06 18:25:43 +00:00
Filippos Karapetis 254850aa23 - Some work on kLocalToGlobal and kGlobalToLocal for SCI2+
- Removed the custom types MemoryHandle, LoopNo, CelNo (cause we ended up having code like LoopNo loopNo = ...)
- Improved the sanity checks in frameOut()

svn-id: r47087
2010-01-06 17:25:54 +00:00
Filippos Karapetis 9a99226d31 Removed a hack from the fallback detector, used to distinguish some demos from their full versions
svn-id: r47086
2010-01-06 16:39:48 +00:00
Johannes Schickel 8c79b6f6ee Adapt FLAC and Vorbis to use calculateSampleOffset in their seek implementation.
svn-id: r47085
2010-01-06 16:11:21 +00:00
Vladimir Menshakov c58c870159 removed all magic about mark's velocity
svn-id: r47084
2010-01-06 16:09:57 +00:00
Max Horn dd76e2bda0 Rename some Timestamp methods: getNumberOfFrames -> numberOfFrames and getFramerate -> framerate
svn-id: r47083
2010-01-06 15:56:04 +00:00
Johannes Schickel 297a955579 - Simplify Audio::calculateSampleOffset.
- Made Audio::calculateSampleOffset accessable from outside audiostream.cpp.
- Adapt KYRA's AUDStream to use Audio::calculateSampleOffset.

svn-id: r47082
2010-01-06 15:40:49 +00:00
Johannes Schickel e72707b04e - Add some functionallity to query the seconds and number of frames stored in a Timestamp.
- Add tests for these

svn-id: r47081
2010-01-06 15:33:54 +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
Filippos Karapetis 027fe079c9 The error inside execute_method() has been restored, it's only a warning for SCI2+ games for now, till we figure out what's wrong
svn-id: r47079
2010-01-06 14:04:56 +00:00
Martin Kiewitz 9272822486 SCI: initPriorityBands() now aborts when getting called and screen size is not 320x200
svn-id: r47078
2010-01-06 13:26:53 +00:00
Martin Kiewitz 07ce38db5f SCI: changed screenHeight to 200 fixed inside initPriorityBands() because the algo is meant to work on lowres only
svn-id: r47077
2010-01-06 13:22:36 +00:00
Filippos Karapetis ce5320d814 SCI2+ games no longer use priority bands (fixes memory leaks in true hires games, too)
svn-id: r47076
2010-01-06 13:11:10 +00:00
Martin Kiewitz 7d7d23ce2b SCI: making most of the variables in screen class private (some of it was needed for old gui)
svn-id: r47075
2010-01-06 13:05:14 +00:00
Filippos Karapetis 86c1171b11 Removed one more hardcoded screen dimension
svn-id: r47074
2010-01-06 12:55:51 +00:00
Filippos Karapetis 3d3d0dee1b SCI2.1 and newer games always run at 640x480
svn-id: r47073
2010-01-06 12:21:27 +00:00
Filippos Karapetis bcf7535c97 Removed all hardcoded screen sizes
svn-id: r47072
2010-01-06 12:17:03 +00:00
Max Horn 1c6ccf8000 Add more comparision operators to Timestamp
svn-id: r47071
2010-01-06 12:15:05 +00:00
Max Horn 5b635fd610 Change the way Timestamp stores its data.
Instead of storing milliseconds and frames (which causes rounding errors,
and causes ambiguity in how a given time is stored), we now do things
differently: We store a number of seconds, and frames. To make sure that
we can still handle milliseconds accurately, though, we change the
framerate to the least common multiple of the original framerate and
1000. So 60 becomes 6000, and 44100 becomes 441000. There are no visible
changes for client code, except for the increased accuracy.

svn-id: r47070
2010-01-06 12:09:14 +00:00
Vladimir Menshakov 69566f6bf1 do not interrupt any actions (test for wii)
svn-id: r47069
2010-01-06 10:11:38 +00:00
Vladimir Menshakov 427a15cd05 minor cleanups
svn-id: r47068
2010-01-06 09:38:56 +00:00
Johannes Schickel 789f2ce255 The current AIFF stream implementations returns a SeekableAudioStream, reflect that in its factory method.
svn-id: r47067
2010-01-06 00:02:49 +00:00
Johannes Schickel 668f6e5de8 Adapt TOUCHE to use the new FLAC, Vorbis and MP3 factories (it didn't use any looping features anyway).
svn-id: r47066
2010-01-06 00:02:19 +00:00
Johannes Schickel 8638d6ce61 Change the AudioStream::openStreamFile API to return SeekableAudioStreams and remove parameter for depreacted loop support. (We could consider moving this to SeekableAudioStream).
svn-id: r47065
2010-01-06 00:01:57 +00:00
Johannes Schickel 5243157eb1 Adapt digital iMuse to use SeekableAudioStream::seek, instead of ryling on the deprecated FLAC, Vorbis and MP3 interface.
svn-id: r47064
2010-01-06 00:01:27 +00:00
Johannes Schickel fb9017c51e Adapt SAGA to use Mixer::playAudioStreamLooping instead of relying the depracted in AudioStream looping support.
svn-id: r47063
2010-01-06 00:00:50 +00:00
Johannes Schickel 0e420431fd Adapt KYRA to use the new FLAC, Vorbis and MP3 factories.
svn-id: r47062
2010-01-06 00:00:25 +00:00