Paul Gilbert
c8f991e89b
Bugfix for crash if an error occurs before the game object (and thus the debugger) is created
...
svn-id: r47018
2010-01-05 05:25:18 +00:00
Matthew Hoops
5fbbd5b8d9
Zero the array before using it. You can go talk to Grace now, DrMcCoy.
...
svn-id: r47017
2010-01-05 04:00:13 +00:00
Johannes Schickel
d485d0c295
Oops somehow I must have missed CopyRateConverter::flow, in r47014.
...
svn-id: r47016
2010-01-05 02:48:38 +00:00
Johannes Schickel
5b9f267e71
Use the return value of RateConverter::flow to calculate the decoded samples and not the upper bound "len". (This should only be a difference when the audio stream has no more samples left)
...
svn-id: r47015
2010-01-05 02:42:55 +00:00
Johannes Schickel
2ef2064f44
Make RateConverter::flow return the number of sample pairs written, like it's documented in the .cpp file.
...
svn-id: r47014
2010-01-05 02:42:35 +00:00
Johannes Schickel
f5c3bd887e
- Add a new SeekableAudioStream interface. Soon to be used to replace audio stream specific looping code by generic code in Mixer...
...
- Adapted some existing AudioStreams to implement that interface (not tested!)
svn-id: r47013
2010-01-05 02:27:24 +00:00
Filippos Karapetis
00e48f687f
Cleanup
...
svn-id: r47012
2010-01-05 01:52:56 +00:00
Matthew Hoops
e87cc86665
Fix walking in SCI32. Gabriel now will walk and DrMcCoy can now hear his precious 'Gabriel is a lout' line :P
...
svn-id: r47011
2010-01-05 01:51:09 +00:00
Filippos Karapetis
e72e130048
Yet more renaming
...
svn-id: r47010
2010-01-05 01:47:44 +00:00
Filippos Karapetis
d99aa0f126
More renaming
...
svn-id: r47009
2010-01-05 01:37:57 +00:00
Matthew Hoops
2f1a909696
Fix compile.
...
svn-id: r47008
2010-01-05 01:29:04 +00:00
Filippos Karapetis
84cd8d2dc7
Renamed /gui to /graphics and /sfx to /sound, to better illustrate their purpose
...
svn-id: r47007
2010-01-05 01:22:16 +00:00
Matthew Hoops
d8c59f5baa
Disable the planeLeft/planeTop code as it doesn't work under the current code (and left a FIXME explaining why it doesn't work).
...
svn-id: r47006
2010-01-05 01:14:08 +00:00
Filippos Karapetis
f66d5a7f53
SCI: Removed the old graphics code
...
svn-id: r47005
2010-01-05 00:54:53 +00:00
Filippos Karapetis
86cad51d07
Set the new sound code as default
...
svn-id: r47003
2010-01-05 00:25:49 +00:00
Martin Kiewitz
575bc45301
SCI: adjusting cel drawing according to left/top of plane
...
svn-id: r47002
2010-01-05 00:12:31 +00:00
Matthew Hoops
f8ba8886ce
Oops, forgot to commit this file too.
...
svn-id: r47001
2010-01-04 23:39:22 +00:00
Matthew Hoops
3c0805550e
Remove the planes/screenItems count and use the arrays' size() function instead.
...
svn-id: r47000
2010-01-04 23:37:29 +00:00
Matthew Hoops
c26ac879c6
Silence gcc warnings.
...
svn-id: r46999
2010-01-04 23:32:41 +00:00
Martin Kiewitz
6c001b7ffd
SCI: removing warning() from kFrameOut
...
svn-id: r46998
2010-01-04 23:31:50 +00:00
Martin Kiewitz
01d68c7eaf
SCI: adding #ifdefs for temporary gui work
...
svn-id: r46997
2010-01-04 23:17:51 +00:00
Martin Kiewitz
3767d3a718
SCI: now filtering screenItems against planes
...
svn-id: r46996
2010-01-04 23:09:57 +00:00
Max Horn
645f73cb18
Switch Channel::getElapsedTime() to use a Timestamp for its computations
...
svn-id: r46995
2010-01-04 22:48:52 +00:00
Max Horn
4ae9412a3a
Make some improvements for Audio::Timestamp.
...
* Add convertToFramerate() method
* Add framerate() method
* Add operator == and !=
* Improve frameDiff() to work for two timestamps with distinct framerates
* Improve Doxygen comments
svn-id: r46994
2010-01-04 22:48:28 +00:00
Martin Kiewitz
a6aaeb70e6
SCI: fix crash due accessing invalid object (implemented deleteScreenitem)
...
svn-id: r46993
2010-01-04 22:23:45 +00:00
Martin Kiewitz
05a16d7cba
SCI: surprise for this DrMcCoy guy
...
svn-id: r46992
2010-01-04 22:14:34 +00:00
Filippos Karapetis
f7855e1c07
Implemented the same fix for tag2string() as in commit #44920 , thereby fixing an assert in MSVC with the QT player when playing Myst. The parameter passed to isprint() should always be unsigned
...
svn-id: r46989
2010-01-04 20:57:38 +00:00
Walter van Niftrik
184090cb46
SCI: Add support for SCI2 to AvoidPath.
...
svn-id: r46986
2010-01-04 20:52:25 +00:00
Martin Kiewitz
39cf9576af
SCI/newmusic: initialize _volume in constructor
...
svn-id: r46984
2010-01-04 19:50:58 +00:00
Filippos Karapetis
b9c8e6edb8
Code optimization: removed unneeded string comparisons when executing a sound command (including cmdUpdateCues, which is executed very often)
...
svn-id: r46983
2010-01-04 19:39:33 +00:00
Johannes Schickel
590a687ce1
Comment out unused variable.
...
svn-id: r46982
2010-01-04 18:33:31 +00:00
Filippos Karapetis
97fc845a07
SCI/new music code: Fixed the code that handles mixed Adlib/MIDI mode, and added better comments on what it actually does
...
svn-id: r46981
2010-01-04 18:24:58 +00:00
Vladimir Menshakov
89e18f5f12
original code uses exclusive random intervals
...
svn-id: r46980
2010-01-04 18:10:45 +00:00
Vladimir Menshakov
fe2529ce17
fixed flame effect
...
svn-id: r46979
2010-01-04 18:06:59 +00:00
Matthew Hoops
8cc208ba2e
Minor cleanup; remove GF_10TH, it's not used or needed anywhere.
...
svn-id: r46978
2010-01-04 17:37:25 +00:00
Matthew Hoops
380190ee12
Fix a memory leak spotted by cppcheck. Thanks salty-horse\!
...
svn-id: r46977
2010-01-04 17:30:47 +00:00
Matthew Hoops
bf3973051b
Merge the Mohawk Video class into QTPlayer and general cleanup.
...
svn-id: r46976
2010-01-04 17:27:36 +00:00
Martin Kiewitz
01eb329be2
SCI: kPalette / animate adjustments to behave more like sierra sci, also doesnt crash in island of brain anymore
...
svn-id: r46975
2010-01-04 16:44:58 +00:00
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
Vladimir Menshakov
50245ba571
added idle animation
...
svn-id: r46968
2010-01-04 11:12:19 +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
David Turner
ae9cf4d51e
Mohawk : Improved code formatting conventions compliance.
...
svn-id: r46965
2010-01-04 08:10:29 +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