aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/ksound.cpp
AgeCommit message (Collapse)Author
2009-09-25Create a define for the special "signal" offset used throughout the engine, ↵Filippos Karapetis
and fixed the arbitrary 0 values from commit #44294, set when some math functions do invalid calculations svn-id: r44359
2009-09-24Fix warnings.Johannes Schickel
svn-id: r44304
2009-09-23- Moved the SCI version in a global variableFilippos Karapetis
- Changed all the SCI version checks to use getSciVersion() - Also made getSciVersionDesc a global function (removes some ugly accessing of the SCI engine) The fallback detector should work correctly now svn-id: r44269
2009-09-17SCI: Rename WAS_FUNCT_NR to FAKE_FUNCT_NR; turn some #defines into enumsMax Horn
svn-id: r44169
2009-09-12Made is_object() a method of the segment managerFilippos Karapetis
svn-id: r44042
2009-09-06SCI: cleanupMax Horn
svn-id: r43984
2009-09-06SCI: Rename resManager -> resMan; segManager -> segManMax Horn
svn-id: r43980
2009-09-04SCI: Reset signal before playing song.Walter van Niftrik
svn-id: r43940
2009-09-02Some renaming:Filippos Karapetis
getresourceManager -> getResourceManger resourceManager -> resMan segmentManager ->segMan svn-id: r43908
2009-09-02SCI: funct_nr is not used in 99% of all opcodes -- hide it in those (to be ↵Max Horn
removed eventually) svn-id: r43905
2009-08-30SCI: Add SetCursor detection. Cleanup.Walter van Niftrik
svn-id: r43812
2009-08-25- Replaced more cases of EngineState parametersFilippos Karapetis
- Made some version comparisons for old SCI0 versions easier to read - Removed the GET_SEL32SV macro svn-id: r43729
2009-08-25- Simplified the parameters of some functionsFilippos Karapetis
- Replaced some EngineState parameters - The SCI version is now obtained from the resource manager or the segment manager, thereby simplifying several functions - Plugged 2 leaks in the fallback detector - Renamed the segment manager and resource manager to "segmentManager" and "resourceManager" in all places, for consistency svn-id: r43722
2009-08-17SCI: Add autodetection for DoSound. Cleanup.Walter van Niftrik
svn-id: r43482
2009-08-16SCI: Stage 1 of the game detection overhaul. The end goal is to autodetectWalter van Niftrik
as much as possible. All SCI_VERSION_* information was removed from detection.cpp (much of it was incorrect anyway). svn-id: r43449
2009-07-11Moved the kernel and the vocabulary outside of the engine state (they're ↵Filippos Karapetis
static data, which never changes during a game) svn-id: r42398
2009-07-11SCI: don't let TimerSongIterator loop forever, and don't immediatelyWillem Jan Palenstijn
signal completion when starting it. This fixes a sync issue with the departing spaceship at the start of SQ4CD (after the intro). svn-id: r42385
2009-07-11Applied patch 2818733 - "SCI: Timer iterator for audio resources played via ↵Filippos Karapetis
doSound" svn-id: r42375
2009-07-07Silenced the very chatty song iterator console messages by converting them ↵Filippos Karapetis
to appropriate debug messages svn-id: r42240
2009-07-07Cleanup: added an enum for the auto-detected features, removed the selectors ↵Filippos Karapetis
which are only used for auto-detection from the convenience selector map and placed feature auto-detection in a separate function. Also, now the automatically detected graphics resources are shown in the console. svn-id: r42212
2009-07-07- Added auto-detection for EGA graphics. As a result of this, GF_SCI1_EGA ↵Filippos Karapetis
has been removed and versions SCI_VERSION_01_EGA and SCI_VERSION_01_VGA have been merged into SCI_VERSION_01 - Simplified the checks for EGA and VGA graphics - Fixed a bug in script_adjust_opcode_formats() - Simplified the code in GfxResManager::getView() a bit svn-id: r42206
2009-07-06Renamed SCI_VERSION_01 -> SCI_VERSION_01_EGAFilippos Karapetis
svn-id: r42181
2009-07-06Swapped the music and audio resource check for SCI1.1 games. Digital sound ↵Filippos Karapetis
effects are now preferred over the synthesized ones svn-id: r42179
2009-07-06Proper handling of sound effects marked as music resourcesFilippos Karapetis
svn-id: r42174
2009-07-06When a song isn't found, send a "stop handle" event so that the engine won't ↵Filippos Karapetis
wait forever (e.g. in SQ4CD, perhaps others) svn-id: r42172
2009-07-06Replaced sciprintf() calls with printf, DebugPrintf, warning and error callsFilippos Karapetis
svn-id: r42167
2009-07-05- Fixed feature auto-detection for Conquests of CamelotFilippos Karapetis
- Auto-detected features are now printed in the console (to ease debugging) svn-id: r42132
2009-07-04Newer DoSound() semantics are now detected automatically, by the existence ↵Filippos Karapetis
of the "setVol" selector. Removed game flag GF_SCI1_NEWDOSOUND svn-id: r42087
2009-06-12SCI: Moved audio code from AudioResource to the sfx core.Walter van Niftrik
svn-id: r41486
2009-06-09SCI: Moved SCI1 audio map handling into the resource manager.Walter van Niftrik
svn-id: r41408
2009-06-07SCI: Moved resource36 handling into resource manager.Walter van Niftrik
svn-id: r41349
2009-06-07SCI: Objectified SongLibraryMax Horn
svn-id: r41343
2009-06-07SCI: Renamed various song/songlib related structs and membersMax Horn
svn-id: r41342
2009-06-07Replaced KP_ALT, SKPV_OR_ALT and UKPV_OR_ALTFilippos Karapetis
svn-id: r41340
2009-06-07Replaced/removed KP_UINT, KP_SINT, SKPV and UKPV as well as the ↵Filippos Karapetis
VIEW_PRIORITY and PRIORITY_BAND_FIRST wrappers svn-id: r41338
2009-06-07SCI: Resmgr cleanup and preparations for moving resource36 handling into resmgr.Walter van Niftrik
svn-id: r41318
2009-06-04SCI: Renamed EngineState::flags and version to _flags and _version ↵Max Horn
(following our conventions); also slightly changed the EngineState constructor to init _version & _flags, and used this to make them constant svn-id: r41177
2009-05-31Removed script_error_flag and script_debug_flag, which were used to error ↵Filippos Karapetis
out if something went wrong and open the debugger console. Changed all the places where they were used to error() out instead, as ScummVM's debugger console can open on error() svn-id: r41073
2009-05-30- Fix various debugC calls (parameters passed were not correct)Johannes Schickel
- Fix unused variable warning in scriptdebug.cpp svn-id: r41038
2009-05-30- Removed debug_mode from the engine stateFilippos Karapetis
- Turned all SCIkwarn and SCIkdebug functions to ScummVM's debugC function - Placed some debug code in appropriate defines: DEBUG_PARSER, DEBUG_AVOIDPATH and DEBUG_SOUND - Removed the "debuglog" command and the "script_checkloads_flag" and "sci_debug_flags" variables svn-id: r41033
2009-05-29Fix warning about unused variable.Johannes Schickel
svn-id: r41005
2009-05-29Some WIP code on the speech used in KQ6CDFilippos Karapetis
svn-id: r40996
2009-05-28SCI: Turned SfxState into a proper class (i.e., convert the sfx_ funcs to ↵Max Horn
member methods) svn-id: r40973
2009-05-28SCI: Merged SfxPlayer/NewPlayer code into sfx/core.cppMax Horn
svn-id: r40965
2009-05-28SCI: cleanupMax Horn
svn-id: r40959
2009-05-28SCI: Renamed sfx_state_t -> SfxState, preparing it to become a class eventuallyMax Horn
svn-id: r40958
2009-05-27- SQ5 floppy starts nowFilippos Karapetis
- Added a new console command, "room", which shows the current room svn-id: r40943
2009-05-27- Renamed the Audio commands to kSci*, from kSci1* (since they're pretty ↵Filippos Karapetis
much the same for SCI1.1) - Added enums for the audio sync cases - Added a warning when kDoSync is called with the new semantics (SQ4CD or newer) svn-id: r40936
2009-05-27Added a warning when kDoAudio is called with the new semantics (SQ4CD or ↵Filippos Karapetis
newer) and fixed the detection entry for SQ4CD svn-id: r40935
2009-05-26Fix g++ warning.Johannes Schickel
svn-id: r40905