Filippos Karapetis
8cc690935a
Updated comment
...
svn-id: r46974
2010-01-04 16:18:35 +00:00
Filippos Karapetis
5560f93c2a
SCI/new sound code: update sound cues when kGetEvent() is called, instead of kAnimate(), fixes music fading in LSL3
...
svn-id: r46973
2010-01-04 16:16:58 +00:00
Martin Kiewitz
f245917d6f
SCI/newmusic: fadeout in sci0 (not stopping music yet), revert of SoundResource changes
...
svn-id: r46972
2010-01-04 15:17:46 +00:00
Filippos Karapetis
d437b25c57
SCI/new music: Resolved another possible deadlock when pausing all sounds
...
svn-id: r46971
2010-01-04 14:43:14 +00:00
Filippos Karapetis
60ece55fb9
Fallback detector:
...
- Added detection for SCI2 games (GK1, PQ4, QFG4)
- Rewrote the way demos are detected
- Games are no longer distinguished from the existence of certain files
svn-id: r46970
2010-01-04 13:50:43 +00:00
Martin Kiewitz
01ebbcf101
SCI: channels[] work, sci0 fading still not working (volume is changed though)
...
svn-id: r46969
2010-01-04 13:21:35 +00:00
Filippos Karapetis
c25f24efc7
Removed the now unused GuiDummy class
...
svn-id: r46967
2010-01-04 08:34:07 +00:00
Filippos Karapetis
3218da8975
SCI/new music code: Now the the music driver to use is obtained directly from the sound options, instead of asking for a driver which supports the requested MIDI driver flags
...
svn-id: r46966
2010-01-04 08:28:09 +00:00
Filippos Karapetis
ed06df7a25
SCI/new music code: The number of voices is now obtained from the MIDI driver
...
svn-id: r46964
2010-01-04 08:06:11 +00:00
Martin Kiewitz
8fb870b0e3
SCI/newmusic: support for SCI0 fading, doesnt work yet because channels[] is currently not correctly filled out inside SoundResource class - because it wasnt previously needed
...
svn-id: r46963
2010-01-03 23:30:23 +00:00
Filippos Karapetis
54dbd75ed9
Code beautification (fixes a false positive, too)
...
svn-id: r46960
2010-01-03 22:54:51 +00:00
Filippos Karapetis
c0aad0508c
Renamed SCI_VERSION_AUTODETECT to SCI_VERSION_NONE to signify its actual purpose
...
svn-id: r46959
2010-01-03 22:50:39 +00:00
Johannes Schickel
b2355cac9f
- Remove unsafe default constructor of Audio::Timestamp.
...
- Add an assert which prevents the _frameRate from being 0 in the Audio::Timestamp constructor.
svn-id: r46958
2010-01-03 22:41:35 +00:00
Filippos Karapetis
b92a744a04
sane_nodep() and sane_listp() should not be dummy functions when DISABLE_VALIDATIONS is set, so that the engine doesn't try and refer to null pointer objects (and subsequently crash)
...
svn-id: r46956
2010-01-03 21:53:34 +00:00
Filippos Karapetis
dccc1db768
Fixed regression from commit #46950 (fixes KQ6CD, Pharkas CD, and others)
...
svn-id: r46955
2010-01-03 21:51:30 +00:00
Martin Kiewitz
d13b23d688
SCI/newmusic: this fix will make qfg1vga character selection music work
...
svn-id: r46950
2010-01-03 21:17:58 +00:00
Filippos Karapetis
781dd3b183
Fixed compilation with DISABLE_VALIDATIONS, and fixed a bug in kPrevNode
...
svn-id: r46949
2010-01-03 21:12:44 +00:00
Filippos Karapetis
eeb3502fa4
Made the "version" command more verbose, listing all the automatically detected game features, along with the detected SCI version
...
svn-id: r46943
2010-01-03 20:18:36 +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
Filippos Karapetis
870c99b4d4
SCI/new music code: Only reference the mixer for music slots which actually contain digital audio data
...
svn-id: r46939
2010-01-03 18:43:17 +00:00
Filippos Karapetis
1b6b4c5c08
Fixed memory leak (as reported by eriktorbjorn)
...
svn-id: r46938
2010-01-03 18:37:13 +00:00
Filippos Karapetis
7fa62cdd2b
SCI/new music code: Proper handling of disposed sounds when loading a saved game. Also, addressed a possible mutex issue with cmdPauseSound
...
svn-id: r46937
2010-01-03 18:06:48 +00:00
Lars Skovlund
6cc4dacf5e
SCI: Support pointer arithmetics in +ag, +agi, etc. too
...
svn-id: r46935
2010-01-03 17:40:17 +00:00
Filippos Karapetis
6a25bd2b8a
The backtrace command now outputs to the graphical console
...
svn-id: r46934
2010-01-03 16:50:27 +00:00
Filippos Karapetis
913616dc98
Removed junk characters
...
svn-id: r46931
2010-01-03 16:14:09 +00:00
Filippos Karapetis
56963dc092
SCI/new music code: Some cleanup. Previous commit (rev 46928) should read: "Added some more commands from BaseSongIterator::parseMidiCommand()"
...
svn-id: r46930
2010-01-03 16:11:31 +00:00
Filippos Karapetis
cf5e5f6c92
svn-id: r46928
2010-01-03 15:59:43 +00:00
Filippos Karapetis
2f23eb99ee
The "room" command can now set the current room number, too (more straightforward than changing global var 13)
...
svn-id: r46925
2010-01-03 15:08:26 +00:00
Filippos Karapetis
454fb24c85
SCI/new music code: don't throw warnings for MIDI commands which are handled by the music driver
...
svn-id: r46924
2010-01-03 14:39:38 +00:00
Filippos Karapetis
72a020320f
SCI/new music code:
...
- sounds are no longer stopped in cmdUpdateCues if their signal is set
- cmdSetSoundVolume no longer throws a warning if it can't find the associated sound (in some games, it's called before the actual sound is loaded)
- removed unused parameters to the SciMusic() class and to MusicEntry::onTimer()
- removed a hack to get the sound loop selector
svn-id: r46923
2010-01-03 13:28:59 +00:00
Martin Kiewitz
2861cab322
SCI: windowMgr port fix (using id 1 now on that port instead of 0, still accessible via id 0 as well) fixes qfg1vga, sq4 (-10 pixel walking) and castle of dr. brain (computer room puzzle)
...
svn-id: r46922
2010-01-03 13:13:13 +00:00
Matthew Hoops
986a75b7ee
Implement kInPolygon for SCI32. GK1 now responds when you click on things.
...
svn-id: r46918
2010-01-03 05:29:30 +00:00
Matthew Hoops
7d5e91337e
Fix the GK1 view segfault. szUnpacked was overflowing in SCI32 -- it should be uint32. GK1 now is a bit more playable, with many many glitches.
...
svn-id: r46917
2010-01-03 04:46:00 +00:00
Matthew Hoops
6ba2bd8bfc
Add support for wave files in the audio volume. This is used in Pharkas CD and GK1 CD.
...
svn-id: r46916
2010-01-03 03:37:50 +00:00
Martin Kiewitz
baf8575e36
SCI: adjusted kDisplay change to occur SCI1late
...
svn-id: r46902
2010-01-02 22:04:05 +00:00
Martin Kiewitz
2f65f8f7c6
SCI: kDisplay difference in SCI0 (fixes colonels bequest copy protection screen)
...
svn-id: r46901
2010-01-02 21:55:39 +00:00
Willem Jan Palenstijn
13a242838f
SCI/new music code: Don't stop notes when looping for a hold
...
svn-id: r46897
2010-01-02 20:20:36 +00:00
Filippos Karapetis
0b3d3c37a5
SCI/new music code: Fixed sound patch loading when restoring a saved game
...
svn-id: r46896
2010-01-02 19:24:52 +00:00
Filippos Karapetis
48f023b472
Properly fixed cmdUpdateCues() for SCI0, removing a hack
...
svn-id: r46895
2010-01-02 19:01:34 +00:00
Willem Jan Palenstijn
5c56d726b2
SCI/new music code: Improve midi hold handling a bit. Still broken.
...
svn-id: r46893
2010-01-02 18:16:12 +00:00
Filippos Karapetis
c920abf50a
Changed the default case of setAttribute() to a warning, so that loading works in LSL3
...
svn-id: r46892
2010-01-02 18:02:21 +00:00
Martin Kiewitz
6fa3c10aed
SCI/newmusic: fading signal handling changed... fixes lsl1demo and gk1demo
...
svn-id: r46891
2010-01-02 17:16:59 +00:00
Filippos Karapetis
2ef3983ed8
SCI/new music code: changed some SCI SysEx messages to enums
...
svn-id: r46890
2010-01-02 17:03:58 +00:00
Filippos Karapetis
91ebf0f916
Removed obsolete code
...
svn-id: r46889
2010-01-02 16:14:07 +00:00
Filippos Karapetis
f1b1005b38
Notify the game scripts when fading effect is done
...
svn-id: r46888
2010-01-02 15:58:55 +00:00
Filippos Karapetis
f62e2b2571
SCI/new music code: don't stop a music track if the fading effect has just finished. Fixes the music in GK1 (demo and full)
...
svn-id: r46887
2010-01-02 15:54:08 +00:00
Filippos Karapetis
6c16673305
SCI/new music code: Properly implemented cmdSetSoundHold, with the help of wjp and waltervn
...
svn-id: r46886
2010-01-02 15:37:17 +00:00
Filippos Karapetis
5b5499e06f
SCI/new music code: cleaned up cmdUpdateCues and changed the SCI reverb(?) SysEx in parseNextEvent() to a NOP for now, till its sorted out
...
svn-id: r46885
2010-01-02 15:02:41 +00:00
Martin Kiewitz
1084b90fbb
SCI: listsaves is now "list_saves", also included entry in help
...
svn-id: r46884
2010-01-02 14:11:38 +00:00
Martin Kiewitz
d4738631d5
SCI: implemented new console command "listsaves"
...
svn-id: r46883
2010-01-02 14:08:26 +00:00