Commit Graph
7940 Commits
Author SHA1 Message Date
Filippos Karapetis c4d02f5784 Updated kernel function check for kGetEvent in Mac versions and adjusted the comments for kGetSaveDir
svn-id: r47307
2010-01-15 15:30:40 +00:00
Martin Kiewitz 0338198876 SCI: adding scalesignal selector
svn-id: r47306
2010-01-15 13:33:26 +00:00
Filippos Karapetis 7aa20a38a8 Unified some of the code in midiMixChannels() and midiFilterChannels()
svn-id: r47305
2010-01-15 08:23:48 +00:00
Filippos Karapetis 177cfe4c92 When unloading a song, only reset the channels that it actually used, not all channels
svn-id: r47304
2010-01-15 07:40:07 +00:00
Martin Kiewitz 69c1de90e4 SCI: another change to reanimate behaviour of kDisposeWindow
svn-id: r47300
2010-01-14 20:56:46 +00:00
Martin Kiewitz f1696ce7ef SCI: change on reanimate kDisposeWindow behaviour, fixes sq5 window removal
svn-id: r47299
2010-01-14 20:53:37 +00:00
Filippos Karapetis 218d04afa1 Hold pedal is now reset as well when a sound is unloaded
svn-id: r47298
2010-01-14 16:39:47 +00:00
Walter van Niftrik 373700f00a SCI: Add MIDI support. Currently only the later MT-32/GM patch type works.
Support for the earlier MT-32 patch format will be added in the near future.

svn-id: r47297
2010-01-14 01:44:11 +00:00
Max Horn 8559f0c3eb SCI: Use prefix increment instead of postfix on iterators (more efficient); also correct code formatting issues
svn-id: r47295
2010-01-13 23:58:25 +00:00
Max Horn a88b2639f5 SCI: empty() checks whether the map is empty... removing useless line of code :)
svn-id: r47294
2010-01-13 23:57:53 +00:00
Walter van Niftrik b59eebfea8 SCI: DoSound: when setting volume return previous value, fixes KQ6CD intro.
svn-id: r47292
2010-01-13 17:34:42 +00:00
Filippos Karapetis 24d1db6155 The pitch wheel is now properly reset when a song is unloaded
svn-id: r47290
2010-01-13 14:46:45 +00:00
Martin Kiewitz 7db58ae29e SCI: fix kernel signature for kDrawCel (fixes island of dr. brain), added debugging output for kernel_matches_signature
svn-id: r47288
2010-01-13 11:14:04 +00:00
Filippos Karapetis b44a56aa92 Documented MidiParser_SCI, mentioning that it's an extension to the MidiParser_SMF parser
svn-id: r47287
2010-01-13 08:14:16 +00:00
Martin Kiewitz ef5c9f62d7 SCI: implemented mouse interaction while being in keyboard mode, also ignore disabled entries/separator lines within mouse mode
svn-id: r47285
2010-01-12 21:49:43 +00:00
Johannes Schickel 0d995c5920 Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc.
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)

This commit does not touch "adlib" and "ADLIB" uses!

Also it does not update all the SCUMM detection entries, which still use "Adlib".

svn-id: r47279
2010-01-12 21:07:56 +00:00
Martin Kiewitz 1ebe047972 SCI: using _menuRect inside Menu::mouseFindMenuItemSelection for easier code, also fixed stupid oversight that made the code crash in e.g. lsl6
svn-id: r47278
2010-01-12 20:51:45 +00:00
Martin Kiewitz a62bf2528f SCI: interactive menu with mouse fully implemented, mouse within keyboard menu not yet done
svn-id: r47277
2010-01-12 20:38:57 +00:00
Johannes Schickel dd39b64ce4 Fix memory leak in MidiPlayer_Adlib.
svn-id: r47276
2010-01-12 20:26:49 +00:00
Johannes Schickel 3578f8d091 Fix some memory leaks caused by never freeing the allocated memory, which is pointed at by KernelFuncWithSignature::signature.
svn-id: r47275
2010-01-12 20:19:45 +00:00
Johannes Schickel 36444740b3 Fix some memory leaks caused by never deleting the objects inside SoundCommandParser::_soundCommands.
svn-id: r47274
2010-01-12 20:08:17 +00:00
Martin Kiewitz 7ed2146977 SCI: changed interactive with mouse menu code (still not finished)
svn-id: r47273
2010-01-12 19:52:43 +00:00
Johannes Schickel 003c62fee8 A null pointer can be safely passed to "delete", thus there is no need to check against the pointer being non-zero in advance.
svn-id: r47272
2010-01-12 19:07:03 +00:00
Martin Kiewitz c1e4156587 SCI: added comment about "not behaving like sierra here", also added TODO on mouse state change
svn-id: r47270
2010-01-12 18:46:42 +00:00
Martin Kiewitz a14f044daa SCI: deleting _font when changing active font
svn-id: r47269
2010-01-12 18:43:10 +00:00
Martin Kiewitz 73bacd5d3a SCI: deleting _music in destructor
svn-id: r47268
2010-01-12 18:40:43 +00:00
Martin Kiewitz 52eb58a3e5 SCI: View::getCelCount now validates input
svn-id: r47267
2010-01-12 18:24:37 +00:00
Martin Kiewitz 6a5dbf6db7 SCI: continue when kPortrait is called with no sync resource existant for mouth movement, prints warning() instead
svn-id: r47263
2010-01-12 12:00:00 +00:00
Walter van Niftrik 1a570df5dc SCI: Handle master volume inside music drivers
svn-id: r47261
2010-01-12 00:51:37 +00:00
Filippos Karapetis dc45c729a9 Added mouse click handling for top menus (mouse clicks on menu items of each menu are not handled yet)
svn-id: r47260
2010-01-12 00:18:40 +00:00
Martin Kiewitz 3145ee5379 SCI: changed displaceY and displaceX for cels to int16, also inserted cast to signed char for sci1 displaceX - should fix wii flickering and incorrect cel placement problems
svn-id: r47257
2010-01-11 20:31:12 +00:00
Filippos Karapetis 61e792319d Don't update the screen twice while waiting
svn-id: r47254
2010-01-11 16:33:00 +00:00
Filippos Karapetis 33db6acd7f Changed all kGraph calls which handle rectangles to use kGraphCreateRect(). Also, changed kGraphCreateRect() to return a rect, rather than update a rect pointer
svn-id: r47253
2010-01-11 16:28:46 +00:00
Filippos Karapetis 70694f9858 New music code: Implemented sound stopping after fading, and disabled MIDI sound volume fading, till we figure out what's wrong with fading in the Sierra logo screen in GK1
svn-id: r47252
2010-01-11 14:26:13 +00:00
Filippos Karapetis 6d53dfe917 Some portrait-related changes, to be used when portrait loading/unloading is done. Also, added a comment on where the class is used
svn-id: r47251
2010-01-11 14:12:52 +00:00
Filippos Karapetis 6a07bbd5f4 Moved all the cache limits inside helpers.h and removed an obsolete TODO
svn-id: r47250
2010-01-11 12:23:04 +00:00
Filippos Karapetis 51afa7b0b6 - Set the palette inside doit() again
- Removed a now obsolete TODO
- Portrait animations are now stopped when the Esc key is pressed, or when the engine should quit

svn-id: r47247
2010-01-11 10:59:52 +00:00
Filippos Karapetis fc8fc3a664 The portrait file data is now freed after the portrait animation is done
svn-id: r47246
2010-01-11 10:37:32 +00:00
Filippos Karapetis 4996b7a7d4 Cleanup, fixed a memory leak
svn-id: r47245
2010-01-11 10:31:40 +00:00
Filippos Karapetis 009b86e8cb - Don't set the palette per portrait frame - setting the whole screen palette is a very expensive operation, and shouldn't be done on each frame, especially when all of the frames use the same palette
- Cleanup

svn-id: r47241
2010-01-11 09:30:41 +00:00
Filippos Karapetis 8c4e0de67d Hide the mouse cursor while a video is being played
svn-id: r47240
2010-01-11 09:28:00 +00:00
Walter van Niftrik 403c2f31bb SCI: Fix default optimization level in AvoidPath
svn-id: r47239
2010-01-10 23:55:15 +00:00
Filippos Karapetis a637f50862 Silenced warnings ("this" isn't defined on object instantiation, and commented out some unused variables)
svn-id: r47237
2010-01-10 21:13:38 +00:00
Johannes Schickel 6ca0570fe3 - Add a SubLoopingAudioStream, which loops a nested part of a stream and thus features the same looping capabilites as LinearMemoryStream and LinearDiskStream.
- Remove custom looping code from LinearMemoryStream and LinearDiskStream.
- Adapt various client code to the changes.

svn-id: r47226
2010-01-10 15:20:14 +00:00
Martin Kiewitz bda3fc940c SCI: kPortrait - abort on mouse presses only
svn-id: r47225
2010-01-10 13:22:45 +00:00
Martin Kiewitz 4122e411d0 SCI: kPortrait - mouse click now aborts portrait
svn-id: r47224
2010-01-10 13:11:53 +00:00
Martin Kiewitz d2d740af2a SCI: fixed typo when getting resourceId on kPortrait call - fixes resource not found in kq6 within pawn shop
svn-id: r47223
2010-01-10 11:33:10 +00:00
Martin Kiewitz 156e341e9b SCI: kPortrait - error() out when resource could not be found
svn-id: r47222
2010-01-10 11:29:58 +00:00
Martin Kiewitz 7a5c119930 SCI: ignore hiresMode when not being upscaledHires for kDrawCel and updateBox on kGraph - fixes kq6 dos
svn-id: r47221
2010-01-10 11:21:55 +00:00
Martin Kiewitz c371c39568 SCI: changed SoundResource constructor to set values for digitalChannelNr/digitalSampleRate and digitalSampleSize at any time
svn-id: r47220
2010-01-10 11:01:36 +00:00