Commit Graph
150 Commits
Author SHA1 Message Date
Filippos Karapetis 5ca6b33ba7 SCI: Silenced some sound related warnings. Added an empty function for kDoSound(Restore), called when restoring games
svn-id: r51661
2010-08-02 21:20:43 +00:00
Filippos Karapetis a9a0451b15 SCI: Updated some comments related to Freddy Pharkas and silenced warning for kDoAudio subop 13
svn-id: r51499
2010-07-30 07:11:57 +00:00
Martin Kiewitz a24de29358 SCI: renaming kDoSound(resume) to resumeAfterRestore
kDoSound(resumeAfterRestore) is called right after restoring a saved game for sound-sci0 games, we already resume playing music inside restore, so we don't need to implement this at all

svn-id: r51058
2010-07-20 11:17:33 +00:00
Martin Kiewitz ba776fb293 SCI: implemented subsignatures for kDoSound
svn-id: r50755
2010-07-09 12:06:41 +00:00
Martin Kiewitz 7e05d6e62b SCI: part of subfunction signature&mapping implemented, little cleanup
svn-id: r50750
2010-07-08 21:22:59 +00:00
Martin Kiewitz 07fef4c6e6 SCI: hopefully fix build :P
svn-id: r50747
2010-07-08 18:38:15 +00:00
Martin Kiewitz b877f3c711 SCI: sorted kernel map alphabetically
svn-id: r50746
2010-07-08 18:26:05 +00:00
Filippos Karapetis 9f1320d5cc SCI: Made the SoundCommandParser a member of the SciEngine class and removed it from the EngineState, since it's static throughout the course of a game
svn-id: r50484
2010-06-29 09:00:08 +00:00
Filippos Karapetis 5855cd7127 The volume subop of kDoAudio returns the previous volume in SCI2.1, but not in earlier versions
svn-id: r50141
2010-06-22 15:01:45 +00:00
Matthew Hoops 727841ef91 In SCI32, kDoAudio subop 10 is no longer CD audio. Just stub it off for now.
svn-id: r50134
2010-06-21 22:58:33 +00:00
Max Horn bb528d894c SCI: Rewrap some overlong comments
svn-id: r50012
2010-06-18 09:37:06 +00:00
Filippos Karapetis 2d61dd8608 Fixed invalid memory access in SQ6
svn-id: r49986
2010-06-18 01:38:08 +00:00
Filippos Karapetis 9c1ec81d76 Strict mode: Turned several severe errors (almost all detection related) into errors, instead of warnings
svn-id: r49972
2010-06-17 23:45:38 +00:00
Filippos Karapetis 0e365131ac Fixed wPlayAudio, and added some documentation on the 3 new kDoAudio subops. Digital sounds in Pharkas work again
svn-id: r49928
2010-06-17 12:29:58 +00:00
Filippos Karapetis f4739f9f68 Added debug output to kDoAudio and some music commands. Also added a warning when an audio stream can't be created. Finally, the debug level of the MIDI parser debug output has been raised to 4, as it's too verbose
svn-id: r49605
2010-06-12 11:41:22 +00:00
Matthew Hoops 9f907aac09 kSciAudioWPlay should not actually play the song, but 'pre-load' it. We fake the pre-loading with a flag that will return 0 if the song has been called with kSciAudioWPlay. Fixes the dream sequence sound in MUMG.
svn-id: r49583
2010-06-10 20:26:59 +00:00
Filippos Karapetis 93f33c7dab Resolved a FIXME with getSciLanguage(), by creating a separate setter. Also, some camelCase changes
svn-id: r49568
2010-06-10 11:18:10 +00:00
Filippos Karapetis 83f31e4e44 Added the number of parameters passed in unknown kDoAudio subops
svn-id: r49083
2010-05-18 15:52:45 +00:00
Max Horn 975dbef0e5 SCI: Remove sound/audio.h include from engine/state.h
svn-id: r48063
2010-02-15 00:20:53 +00:00
Filippos Karapetis 07e405588d Moved the reference to AudioPlayer inside SciEngine (as it doesn't have a state, per se, and is static)
svn-id: r48059
2010-02-14 12:23:22 +00:00
Max Horn b9a11ddb0b SCI: Move language related code from EngineState to SciEngine
svn-id: r48052
2010-02-13 17:46:44 +00:00
Max Horn 9575cc08a2 SCI: Move GameFeatures from EngineState to SciEngine
svn-id: r48049
2010-02-13 17:44:58 +00:00
Max Horn a82939c9be SCI: Get rid of EngineState::resMan
svn-id: r48048
2010-02-13 17:44:19 +00:00
Filippos Karapetis 2fb37063a4 Placed all the game feature detection code in a separate class
svn-id: r47850
2010-02-03 11:02:43 +00:00
Matthew Hoops 12d983eaf4 Make EngineState::getLanguage() check from the resource manager as to what language it has loaded before checking from what ScummVM has set and make kDoAudio use EngineState::getLanguage()
svn-id: r47782
2010-01-31 22:14:35 +00:00
Walter van Niftrik 1d50acaa50 SCI: Handle -1 properly when passed as a language id to DoAudio
svn-id: r47774
2010-01-31 19:45:51 +00:00
Lars Skovlund 39ebb168a1 SCI: Make SQ6 sound work. The meaning of these extra parameters is not yet understood.
svn-id: r47660
2010-01-28 23:11:55 +00:00
Johannes Schickel aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +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
Martin Kiewitz 44dc3f9bfb SCI: kDoAudio now also clips volume and adjusts to mixer volume
svn-id: r46852
2010-01-01 21:26:46 +00:00
Martin Kiewitz 2a9e835695 SCI: Added TODO within kDoAudio
svn-id: r46847
2010-01-01 20:26:18 +00:00
Filippos Karapetis 0de0abb5d3 Case kSciAudioLanguage in kDoAudio always checks for audio capability in SCI1.1 games, regardless of parameters. Fixes a warning in SQ4CD
svn-id: r46584
2009-12-26 13:50:52 +00:00
Filippos Karapetis 0c1b646c7f - Started wrapping the current sound code around appropriate defines
- Introduced a new resource type, SoundResource, used in the new music code

svn-id: r46421
2009-12-19 16:19:53 +00:00
Filippos Karapetis e2985a4173 Removed sfx/misc.h
svn-id: r45885
2009-11-14 03:15:20 +00:00
Filippos Karapetis fbfafb576e Started objectifying kDoSound()
svn-id: r45862
2009-11-12 15:24:11 +00:00
Filippos Karapetis 1f49679db5 Moved the audio related command enums inside audio.h
svn-id: r45676
2009-11-05 00:04:53 +00:00
Matthew Hoops d2b76368e1 Fix CD Audio in JonesCD and add some comments.
svn-id: r45669
2009-11-04 15:41:40 +00:00
Filippos Karapetis 7d00c4a7f1 Moved the audio CD handling code inside the AudioPlayer class. Some cleanup
svn-id: r45656
2009-11-04 11:22:46 +00:00
Filippos Karapetis 2dbf6662fc Moved the sound sync code inside the AudioPlayer class
svn-id: r45655
2009-11-04 10:20:25 +00:00
Filippos Karapetis 611f5dd95f Moved sound sync related variables inside the AudioPlayer class and fixed compilation
svn-id: r45654
2009-11-04 09:49:28 +00:00
Filippos Karapetis 597524b255 Moved most of the code for playing sound effects and speech into a separate class
svn-id: r45653
2009-11-04 09:36:18 +00:00
Filippos Karapetis ff284c9f5b Remove unused includes when INCLUDE_OLDGFX is not set. Implemented the full screen updates that the current menu code is doing using new graphics functions (still unfinished). Some cleanup.
svn-id: r45536
2009-10-30 12:33:05 +00:00
Matthew Hoops 55e0efeb8f Add support for CD Audio in Jones in the Fast Lane CD and KQ6 CD.
svn-id: r45367
2009-10-25 03:26:20 +00:00
Filippos Karapetis 93517e7649 Applied a modified version of patch #2881486 - "Add volume changing to SCI"
svn-id: r45329
2009-10-22 07:18:37 +00:00
Martin Kiewitz c6d2086815 SCI: kDoSound typo fixed
svn-id: r45238
2009-10-18 20:33:02 +00:00
Martin Kiewitz cdcd465a95 SCI: kDoSound doesnt reset nodePtr on fade anymore, fixes lsl5 endless music loop at patti exam scene
svn-id: r45237
2009-10-18 20:30:31 +00:00
Max Horn f3ab3051d8 SCI: Make the implicit segMan param to GET_SEL32(V) and PUT_SEL32(V) explicit
svn-id: r45234
2009-10-18 19:42:56 +00:00
Max Horn 8191c04056 SCI: Merge some sfx related global funcs into SfxState.
This allows us to get rid of "static SfxPlayer *s_player".

svn-id: r45038
2009-10-13 18:51:59 +00:00
Walter van Niftrik b2a148e12c SCI: Fix hang in KQ6 book worm scene
svn-id: r44889
2009-10-11 02:47:07 +00:00
Max Horn 6ad5840181 SCI: Rename EngineState::segMan to _segMan
svn-id: r44629
2009-10-04 18:38:18 +00:00