Commit Graph

48 Commits

Author SHA1 Message Date
Johannes Schickel
7b126c5f24 MADE: Minimize #include usage. 2011-10-09 22:58:37 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Johannes Schickel
71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
b6fc71b0c5 MADE: Prefer Surface::create taking a PixelFormat over the one taking a byte depth. 2011-04-17 16:29:23 +02:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
31bf3a4137 MADE Remove now redundant fflush call
svn-id: r54036
2010-11-02 09:49:07 +00:00
Torbjörn Andersson
4172a94edd Cleanup.
svn-id: r50950
2010-07-16 23:10:41 +00:00
Johannes Schickel
a505d32eff Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream.
svn-id: r47716
2010-01-30 15:26:54 +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
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
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
69be747621 Move raw audio streams to new header sound/raw.h
svn-id: r47368
2010-01-19 00:54:06 +00:00
Max Horn
349fcd1d71 Rename 'Linear' audio streams to 'raw'
svn-id: r47367
2010-01-19 00:52:41 +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
Benjamin Haisch
6cd612d359 Fix regression introduced by r44459; LGoP2 crashed after Infocom logo
svn-id: r44688
2009-10-06 07:35:21 +00:00
Filippos Karapetis
decdc5771a Applied patch #2872409 "MADE engine fixes" by agent-q, with one small modification (initialized _soundStarted in the ScriptFunctions constructor)
svn-id: r44589
2009-10-04 09:31:37 +00:00
Benjamin Haisch
af4c6c5f5b Fixed bug #2868938
svn-id: r44459
2009-09-29 08:18:40 +00:00
Matthew Hoops
e858994060 Fix bug #2843050 (RTZ: Crash to desktop with demo). Don't assert out when a resource slot can't be found.
svn-id: r43676
2009-08-23 21:15:47 +00:00
Max Horn
7140dda5e5 MADE: cleanup
svn-id: r41070
2009-05-31 15:07:55 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Benjamin Haisch
6297561f7c - Implemented sound decompression for Manhole EGA
svn-id: r36048
2009-01-25 01:58:16 +00:00
Filippos Karapetis
ba469d3cbb Silenced MSVC warnings
svn-id: r36002
2009-01-22 19:09:05 +00:00
Max Horn
6692330c41 Fix warning
svn-id: r36000
2009-01-22 18:33:02 +00:00
Benjamin Haisch
5b8105afb3 - Added support for The Manhole EGA version
- Support for 'chunked' picture resources and EGA pictures
- Improved the mouth sync in RtZ (still not perfect, though)
- Removed obsolete TODOs
- Fixed sfPlayMovie to return if the movie playback was aborted or not; this is used by RtZ to determine if it should display the credits screen after the intro movie

svn-id: r35997
2009-01-22 13:04:29 +00:00
Filippos Karapetis
68a20e2aba - Removed _gameVersion, engine versions are set in the game detection entries now
- Renamed ProjectReader -> ResourceReader
- Added some WIP code for the EGA version of the Manhole (still not working/disabled)
- The resource reader now closes the files it has opened correctly when it's deleted

svn-id: r35877
2009-01-16 23:20:17 +00:00
Benjamin Haisch
78776638d3 Reworked the sound energy code
svn-id: r35845
2009-01-13 16:18:22 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Benjamin Haisch
23da4c5fa2 Fixed graphics decoding bug in Manhole: N&E
svn-id: r32281
2008-05-26 11:07:18 +00:00
Benjamin Haisch
11697c0eb2 Delete animation frames in AnimationResource destructor.
svn-id: r32201
2008-05-20 19:56:49 +00:00
Benjamin Haisch
55e4b05b18 - Fixed a bug which sometimes caused crashes when ProjectReader::purgeCache() was called
- Some cleanup

svn-id: r31961
2008-05-09 07:22:22 +00:00
Benjamin Haisch
b6c7385eb4 - Renamed XmidiResource to GenericResource
- Added MIDI resource type
- Added ScriptFunctionsLgop2 and ScriptFunctionsMhne (for Leather Goddesses of Phobos 2 and The Manhole: New and Enhanced, resp.)
- Many changes for LGOP2 and The Manhole: N&E

Note about the new ScriptFunctions classes:
I copied the ScriptFunctionsRtz class and so duplicated a lot of code. Most of the opcode functions are the same in all games but there might be differences. Once all common opcode functions have been figured out, they'll be moved to a common place (like the ScriptFunctions class).

svn-id: r31871
2008-05-05 10:45:11 +00:00
Benjamin Haisch
fc6fe46951 Implemented text drawing and cleanup.
svn-id: r31756
2008-04-28 10:56:21 +00:00
Benjamin Haisch
5540ef2d67 Added FontResource type
svn-id: r31717
2008-04-25 11:05:56 +00:00
Filippos Karapetis
b861f38d10 Some initial code for font loading
Implemented opcode o1_LOADANIM

svn-id: r31698
2008-04-24 18:45:11 +00:00
Benjamin Haisch
efeb8a3193 Added (early) midi player code.
Added "screen flash" effect.
Implemented opcodes:
- o1_PLAYMUS
- o1_STOPMUS
- o1_ISMUS
- o1_FLASH
- o1_LOADSND
- o1_LOADMUS

svn-id: r31682
2008-04-23 23:22:02 +00:00
Torbjörn Andersson
718787d700 Fixed signed/unsigned warning.
svn-id: r31677
2008-04-23 20:56:10 +00:00
Benjamin Haisch
d0ad5867e0 Fixed palette issues when showing the inventory and the menu.
Moved drawing code from drawFlex/drawAnimFrame to drawSurface.
Implemented opcodes:
- o1_VISUALFX
- o1_SCREENLOCK
- o1_SETTIMER
- o1_SETGROUND
- o1_SETCLIP
- o1_SETEXCLUDE

svn-id: r31675
2008-04-23 20:12:06 +00:00
Filippos Karapetis
b69ffa922a In-game sound effects and voices should be working correctly now.
Implemented the following opcodes:
- o1_PLAYSND
- o1_ISSND
- o1_STOPSND
- o1_PLAYVOICE
- o1_SOUNDRATE
- o1_SETVOLUME

svn-id: r31666
2008-04-23 17:21:49 +00:00
Filippos Karapetis
54485c24c5 Some palette related fixes
svn-id: r31650
2008-04-21 20:20:34 +00:00
Filippos Karapetis
ad6f9caf51 Compilation fixes by lordhoto
svn-id: r31619
2008-04-20 17:15:31 +00:00
Torbjörn Andersson
7e07dd5ec7 Changed spaces to tabs.
svn-id: r31610
2008-04-20 15:36:40 +00:00
Filippos Karapetis
d0590a09ea Initial import of the work in progress MADE engine
svn-id: r31599
2008-04-20 14:43:56 +00:00