aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
AgeCommit message (Collapse)Author
2009-12-28SCI: Start objectifying MusicEntryMax Horn
svn-id: r46687
2009-12-28SCI/new sound code:Filippos Karapetis
- Made the SciMusic class private, and added wrapper functions for invoking specific methods of SciMusic from outside the SoundCommandParser class - Many SCI games keep creating and destroying sound effects constantly (i.e. many times per second). Therefore, another scheme has been devised, which replaces the mutex that was in place. Whenever a sound command is run which operates on a specific object in the play list, we disallow onTimer() from kicking in. This isn't ideal, but it does stop random deadlocks because of locked mutexes without any noticeable side effects svn-id: r46681
2009-12-28Moved the OLD_PATHFINDING define inside sci.h, together with the othersFilippos Karapetis
svn-id: r46679
2009-12-28Added a workaround for an off-by-one invalid species access bug in the LSL2 ↵Filippos Karapetis
demo svn-id: r46673
2009-12-27SCI/new music code:Filippos Karapetis
- Switched to Common::StackLock for mutexes - Renamed Music::stopAll() -> Music::clearPlayList() - Implemented a better Music::stopAll method, which stops all sounds with proper signals, instead of destroying them - Renamed the SCI0 command cmdGetPlayNext -> cmdStopAllSounds and implemented it svn-id: r46665
2009-12-27Implement kPlatform subfunctions 0 and 2, and stub 1 and 3 (CD speed and CD ↵Matthew Hoops
check). This fixes the DOS version of GK1 CD to play the SEQ's instead of the AVI's. svn-id: r46656
2009-12-27SCI/new music code:Filippos Karapetis
- Implemented sound muting - Now saving/loading the master music volume svn-id: r46643
2009-12-27Renamed gameName -> gameId, to keep the same vocabulary everywhereFilippos Karapetis
svn-id: r46635
2009-12-27Really fixed compilationFilippos Karapetis
svn-id: r46630
2009-12-27Hopefully fixed compilationFilippos Karapetis
svn-id: r46628
2009-12-27SCI/new music code: Filippos Karapetis
- Removed a lot of accessors to the music list, and protected the 2 which are used now with mutexes - Rewrote the music list save/load code to be methods of the SciMusic class svn-id: r46623
2009-12-27SCI32: Partially implemented kOnMe. Now the main menu in GK1 worksFilippos Karapetis
svn-id: r46614
2009-12-27Turned some unimplemented debug related kernel functions into dummy functionsFilippos Karapetis
svn-id: r46613
2009-12-27Now using m_kiewitz's picture code to show pictures in SCI32. Also took some ↵Filippos Karapetis
bits off a similar patch from clone2727. The Sierra logo screen and the menu screen in GK1 should now be shown fully! svn-id: r46609
2009-12-26Throw a warning when we're trying to invoke a variable selector, instead of ↵Filippos Karapetis
swallowing it silently. This should never happen, so we shouldn't hide it, when it does svn-id: r46596
2009-12-26SCI2: Figured out the screen coordinates of views. Now, part of the ↵Filippos Karapetis
interface can be seen in GK1. Also, silenced the OnMe warnings svn-id: r46593
2009-12-26SCI2: Implemented kListEachElementDo (a more advanced version of ↵Filippos Karapetis
SciGuiAnimate:invoke()) and kListAt. Now, the Sierra logo music can be heard, and game logic is running on objects of the animated views list svn-id: r46591
2009-12-26Removed the file and line parameters from the selector handling functionsFilippos Karapetis
svn-id: r46588
2009-12-26Kernel function 0x26 is empty in SCI1.1 games, and it has been set to ↵Filippos Karapetis
kPortrait in KQ6CD only svn-id: r46585
2009-12-26Case kSciAudioLanguage in kDoAudio always checks for audio capability in ↵Filippos Karapetis
SCI1.1 games, regardless of parameters. Fixes a warning in SQ4CD svn-id: r46584
2009-12-26Fixed graphics functions detection in an old version of SQ3 - my initial ↵Filippos Karapetis
thought to rely on the presence of the shiftParser selector was wrong svn-id: r46580
2009-12-26Hopefully fixed the freezes/deadlocks in the new music code (e.g. in LSL5 ↵Filippos Karapetis
and Castle of Dr. Brain) svn-id: r46579
2009-12-26- Made the music playlist privateFilippos Karapetis
- Removed some leaks - Fixed the destruction of the music playlist - Made mutexes more sane - Removed some dead code - Cleanup svn-id: r46578
2009-12-26Some more work on the new music codeFilippos Karapetis
svn-id: r46569
2009-12-26SCI/new music code: Fixed a bug where music was stopped when saving. Some ↵Filippos Karapetis
cleanup svn-id: r46568
2009-12-25SCI/newmusic: added filter support for kq4early and adlibMartin Kiewitz
svn-id: r46563
2009-12-25- Introduced a new version in the sound version detection routine, as SCI0 ↵Filippos Karapetis
early games had different sound than SCI0 late ones - Changed sound-related debug output from printf's into debugC calls svn-id: r46560
2009-12-25Fixed variable capitalizationFilippos Karapetis
svn-id: r46552
2009-12-25Properly initialize the audio stream part of each music slot when loadingFilippos Karapetis
svn-id: r46550
2009-12-25SCI/new music code: Some initial code for saving/loading the sound stateFilippos Karapetis
svn-id: r46549
2009-12-25Fix gcc warning (and along with it make the code a little bit easier to read).Johannes Schickel
svn-id: r46542
2009-12-24Silenced some MSVC warningsFilippos Karapetis
svn-id: r46536
2009-12-24Stub SCI32's kOnMe to give better debugging info (used when clicking in the ↵Matthew Hoops
GK1 menu). svn-id: r46533
2009-12-24Updated comments in kListEachElementDo() to show how it's called, with the ↵Filippos Karapetis
help of waltervn svn-id: r46530
2009-12-24SCI32: Added some more stubs for picture manipulation, screen update and ↵Filippos Karapetis
animation functions svn-id: r46529
2009-12-24Added a hack in kAddScreenItem to display the view in question on screen. ↵Filippos Karapetis
Some parts of the main menu can be seen now in GK1 svn-id: r46528
2009-12-24SCI32: The view related functions pass a view object as parameter, and the ↵Filippos Karapetis
engine should deduce the parameters it needs from that object. Added stub view functions based on that fact. Also, added a sanity check in kCelHigh and kCelWide svn-id: r46527
2009-12-24SCI32:Matthew Hoops
- Fix dup for kArray/kString - Implement kFileIO::rename (SCI1.1) - Implement part of the SCI32 additions to kFileIO - Implement the GetSaveDir part of kSave (SCI2.1) - Torin (SCI2.1!) now shows signs of life -- it will create the torin.prf file with correct data! svn-id: r46521
2009-12-23Some SCI32 (minor) String bug fixes and cleanup.Matthew Hoops
svn-id: r46492
2009-12-21Add a TODO for the SCI 2.1 message version (5).Matthew Hoops
svn-id: r46465
2009-12-21Update/add some comments/TODOs.Matthew Hoops
svn-id: r46463
2009-12-21SCI32:Matthew Hoops
- Fully implement kArray and kIsHiRes and mostly implement kString (printf and atoi subfunctions still missing). - Add a dummy SciGui class for SCI32 to bypass the views. Gabriel Knight 1 will now play the Sierra logo music and the main menu music. - Some other minor SCI32 changes. svn-id: r46462
2009-12-21Fixed text controls when subtitles are enabled in multilingual SCI01 gamesFilippos Karapetis
svn-id: r46461
2009-12-21Fixed menus in multilingual SCI01 gamesFilippos Karapetis
svn-id: r46460
2009-12-20Moved all of the sound iterator code in its own directory, and added a ↵Filippos Karapetis
slight hack to the SoundCommandParser constructor svn-id: r46430
2009-12-20Wrapped some more sound code around appropriate definesFilippos Karapetis
svn-id: r46429
2009-12-20Removed dead codeFilippos Karapetis
svn-id: r46426
2009-12-19- Started wrapping the current sound code around appropriate definesFilippos Karapetis
- Introduced a new resource type, SoundResource, used in the new music code svn-id: r46421
2009-12-19Fix segfault when quitting. static const Common::String's shouldn't be used.Matthew Hoops
svn-id: r46416
2009-12-09SCI: Paranoia tweak for EngineState::autoDetectFeatureMax Horn
svn-id: r46306