Matthew Hoops
2e0fdda51f
Add a pause level system to VideoDecoder (blatantly ripped off from Engine) and adapt Mohawk to it.
...
svn-id: r49120
2010-05-20 18:38:06 +00:00
Matthew Hoops
759e4923d0
Add a new class 'RewindableVideoDecoder' that allows a video to be rewound and have QTPlayer inherit from that.
...
svn-id: r49084
2010-05-18 17:36:34 +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
Ori Avtalion
7ab8f6e25b
Fix currentFrame semantics in Flic player
...
svn-id: r49073
2010-05-18 10:01:31 +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
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Sven Hesse
a1f1cdf820
Changing Imd::renderFrame() and Vmd::renderFrame() to properly clip the drawing area to prevent overdrawing without producing garbage output
...
svn-id: r48264
2010-03-15 22:24:11 +00:00
Sven Hesse
a9b7722df3
The frame coordinate cropping for IMDs is wrong, and should be unnecessary anyway, since Imd::renderFrame() should already check for overblitting. This fixes bug #2969904 ("GOB3: Graphical Glitch in finished cutscene")
...
svn-id: r48262
2010-03-15 17:44:59 +00:00
Sven Hesse
5886a0cc77
Removing a debug warning() and adding some comments
...
svn-id: r48236
2010-03-11 19:47:59 +00:00
Sven Hesse
31f980ffde
Adding support for the very primitive and simply early IMD format used in Fascination
...
svn-id: r48233
2010-03-11 06:14:52 +00:00
Max Horn
9fb27a26f8
Remove unnecessary #includes
...
svn-id: r48185
2010-03-08 10:28:14 +00:00
Arnaud Boutonné
aaa5849567
Revert r47944: useless debug messages, sorry for the wrong commit
...
svn-id: r47946
2010-02-06 22:54:20 +00:00
Arnaud Boutonné
ceba3a6ce9
Add an assert to avoid a crash when printing the character 0x00.
...
svn-id: r47944
2010-02-06 22:47:13 +00:00
Matthew Hoops
969a048619
Silence a valgrind warning. The sound buffer should be created with malloc and not new[].
...
svn-id: r47896
2010-02-05 04:27:51 +00:00
Matthew Hoops
19d3f5ad9b
Have SCI look through the patches directory (except in KQ6 where the patches in that directory are broken) to fix some GK1 Windows problems. Add the MSRLE codec to AVI (from DrMcCoy's Dark Seed II engine, with permission). GK1 Windows now will play the credits video.
...
svn-id: r47894
2010-02-05 03:29:04 +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
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Torbjörn Andersson
4818467908
Silenced some more cppcheck warnings. Some of these may seem silly, but the way
...
I figure it the changes are harmless at worst, and making them will make it
easier to find real errors in the (still quite long) list of warnings.
svn-id: r47443
2010-01-22 19:05:02 +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
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
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
Sven Hesse
30e360f5c5
Yup, not checking for stereo sound was an accident here
...
svn-id: r47195
2010-01-09 03:55:09 +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
Max Horn
474d49946f
Rename QueuedAudioStream to QueuingAudioStream
...
svn-id: r47179
2010-01-08 22:06:04 +00:00
Max Horn
7efba85064
Switch Tinsel, MADE and some of the video players to QueuedAudioStream
...
svn-id: r47178
2010-01-08 22:05:12 +00:00
Filippos Karapetis
bcc33871c1
The wrapper for the VMD decoder is only used in the SCI engine for SCI32 games, so moved it inside the engine, instead of common code. Added support for VMD video playing from the "play_video" console command
...
svn-id: r46737
2009-12-30 10:09:48 +00:00
Eugene Sandulenko
5f1d2a88b5
Fix warning
...
svn-id: r46726
2009-12-29 23:13:30 +00:00
Filippos Karapetis
14d4b75afb
Added a thin wrapper around the VMD player class, so that it can be used with the common VideoPlayer interface, to be used with videos from SCI32 games
...
svn-id: r46715
2009-12-29 19:42:26 +00:00
Sven Hesse
10e62ea992
Adding a getFrameWaitTime() method to get the frame waiting time instead of directly waiting
...
svn-id: r46712
2009-12-29 18:07:06 +00:00
Sven Hesse
881b831074
Adding CoktelVideo::hasExtraData(void), for checking if /any/ extra data files are embedded in the video file
...
svn-id: r46710
2009-12-29 17:10:14 +00:00
Sven Hesse
4a189842bb
Adding support for mono signed 16bit little-endian uncompressed PCM audio (thank you, clone :))
...
svn-id: r46270
2009-12-06 04:38:20 +00:00
Sven Hesse
c7305331ee
Only print sound information if there actually is sound (preventing a division by 0 exception)
...
svn-id: r46210
2009-11-30 02:00:42 +00:00
Sven Hesse
8ede0caf72
Properly clear the chunk headers again on closing
...
svn-id: r46209
2009-11-30 01:58:15 +00:00
Sven Hesse
68b99f1c95
Adding a parameter to the AviDecoder constructor to allow changing the SoundType (instead of it being fixed to Plain)
...
svn-id: r46170
2009-11-28 00:38:18 +00:00
Sven Hesse
07d8f1c89b
Fixing a valgrind warning by memsetting _palette
...
svn-id: r46169
2009-11-28 00:32:16 +00:00
Sven Hesse
447711b597
Fixing an invalid read in the destructor
...
svn-id: r46164
2009-11-27 20:28:37 +00:00
Sven Hesse
c8b8ab679f
00AM is another compressed frame type, fixing this (thanks to digitall for figuring that out :D)
...
svn-id: r46163
2009-11-27 19:26:20 +00:00
Sven Hesse
cb2cc67b41
Extended the AviDecoder a bit
...
svn-id: r46162
2009-11-27 18:25:40 +00:00
Filippos Karapetis
9a39135758
Typo
...
svn-id: r46135
2009-11-25 08:07:20 +00:00
Max Horn
0d9609f7f9
Fix incorrectly placed doxygen comments; replace Common::ID2string by Common::tag2string
...
svn-id: r46127
2009-11-24 22:08:34 +00:00
Johannes Schickel
22e94ddd61
Add missing ")" in #if check.
...
svn-id: r45834
2009-11-11 14:28:07 +00:00
Max Horn
c3905f60ee
Move definition of stdint types to the only file that needs them (mpeg_player.h)
...
svn-id: r45820
2009-11-10 22:18:41 +00:00
Max Horn
2bbf708dea
Introduced new type Common::DisposeAfterUse::Flag
...
svn-id: r45233
2009-10-18 19:41:59 +00:00
Matthew Hoops
620fa7c641
Override getAudioLag() in the AviDecoder (blatantly borrowed from the SmackerDecoder).
...
svn-id: r45172
2009-10-16 18:32:20 +00:00
Matthew Hoops
b43e99566e
Converting AVIPlayer into a class that inherits from VideoDecoder and adapt SCI to use this. Also, moving the codec and Codec class into their own folder. (Based on a patch by md5)
...
svn-id: r45170
2009-10-16 18:05:56 +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
Arnaud Boutonné
c93c9cb68d
gob: fix a regression in Bargon Attack intro caused by a fix of Ween problems. Still requires a more proper fix, but at least it doesn't hang anymore (closing bug #2878717 )
...
svn-id: r45080
2009-10-14 14:06:53 +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
Max Horn
f73c556146
Fix what looks like a typo bug in the AVI player
...
svn-id: r44016
2009-09-08 22:03:28 +00:00
Sven Hesse
21163f5ae1
Add some more drawing constraints, so prevent overflowing the video memory
...
svn-id: r43902
2009-09-01 21:53:00 +00:00