aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/core.cpp
AgeCommit message (Collapse)Author
2009-10-18Introduced new type Common::DisposeAfterUse::FlagMax Horn
svn-id: r45233
2009-10-18Mark an old change made for SQ4 in updateMultiSong() in rev. #39347 as a ↵Filippos Karapetis
workaround svn-id: r45231
2009-10-16Moved sci_ffs() inside iterator.cpp, the only place where it's actually ↵Filippos Karapetis
used, and removed tools.*. Also, removed all the unused includes to tools.h from several places svn-id: r45176
2009-10-13SCI: Doxygenify comments in class SfxPlayerMax Horn
svn-id: r45039
2009-10-13SCI: Merge some sfx related global funcs into SfxState.Max Horn
This allows us to get rid of "static SfxPlayer *s_player". svn-id: r45038
2009-09-30Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other ↵Max Horn
things) svn-id: r44495
2009-09-06SCI: Rename player -> s_player and made it static; allocate MemoryReadStream ↵Max Horn
in two cases on the stack, for simplicity svn-id: r43979
2009-09-02Some renaming:Filippos Karapetis
getresourceManager -> getResourceManger resourceManager -> resMan segmentManager ->segMan svn-id: r43908
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-21Truly fix endianness in the SOL decoder. Raw sounds are always in little ↵Matthew Hoops
endian order and now compressed are outputted to little endian too (and therefore the little endian mixer flag is always set). svn-id: r43576
2009-08-20Fix 16-bit SOL audio on little endian systems. Fixes the white noise in the ↵Matthew Hoops
Gabriel Knight demo. svn-id: r43569
2009-07-01Fixed some more warnings observed on buildbotMax Horn
svn-id: r42010
2009-06-12SCI: Moved audio code from AudioResource to the sfx core.Walter van Niftrik
svn-id: r41486
2009-06-07SCI: Simplified SongLibrary code a bitMax Horn
svn-id: r41345
2009-06-07SCI: Objectified Song struct 'a bit'Max Horn
svn-id: r41344
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-05CleanupFilippos Karapetis
svn-id: r41202
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-31The error() and warning() functions add ! and newline automatically. (I didn'tTorbjörn Andersson
look at debug() and debugC(), since I'm really bored with this now. :-) svn-id: r41061
2009-05-31Typo.Johannes Schickel
svn-id: r41054
2009-05-30SCI: Added constructor&destructor to SfxStateMax Horn
svn-id: r41047
2009-05-30SCI: Made vocab_version static again (a global static var is bad, but a ↵Max Horn
really global var is worse); also clarified some FIXME comments that we want to avoid *any* non-const global var, no matter whether it is static or not svn-id: r41045
2009-05-30Removed the "sfx_debuglog" command. Sound debug messages are now shown if ↵Filippos Karapetis
kDebugLevelSound is specified svn-id: r41039
2009-05-30Removed/replaced BREAKPOINTFilippos Karapetis
svn-id: r41025
2009-05-29SCI: Converted several fprintf(stderr) calls to warning/error (the remaining ↵Max Horn
fprintf calls should probably be replaced by suitable debug/debugC/debugN invocations) svn-id: r40993
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 NewPlayer and SfxPlayerMax Horn
svn-id: r40968
2009-05-28SCI: Merged SfxPlayer/NewPlayer code into sfx/core.cppMax Horn
svn-id: r40965
2009-05-28SCI: Renamed sfx_state_t -> SfxState, preparing it to become a class eventuallyMax Horn
svn-id: r40958
2009-05-28SCI: Some SFX player cleanupMax Horn
svn-id: r40956
2009-05-26Fixed a crash when exiting, a regression from the latest music driver changesFilippos Karapetis
svn-id: r40922
2009-05-26SCI: removed realtime and polled player, as well as the sfx/device dir, ↵Max Horn
after discussion with Walter svn-id: r40913
2009-05-26SCI: Turned sfx_player_t into a class SfxPlayer, and converted the existing ↵Max Horn
players to subclasses of that svn-id: r40912
2009-05-25Objectified the AudioResource code (used for speech and digitized music in ↵Filippos Karapetis
CD talkie games) svn-id: r40880
2009-05-12SCI: cleanupMax Horn
svn-id: r40518
2009-05-12SCI: Replaced SFX_OK/SFX_ERROR by Common::Error, and got rid of sfx/sfx.hMax Horn
svn-id: r40517
2009-04-25WIP (still non-working) code for speech sync in CD talkie games (like e.g. ↵Filippos Karapetis
KQ5 CD and SQ4 CD), taken from Greg's SCI implementation. svn-id: r40142
2009-04-15SCI: Added a new song player (work-in-progress).Walter van Niftrik
svn-id: r39953
2009-03-11Fixed another crash right at the beginning of SQ4Filippos Karapetis
svn-id: r39347
2009-03-10SCI: Renamed SongIteratorMessage -> SongIterator::Message; cleanupMax Horn
svn-id: r39289
2009-03-10SCI: More SongIterator refactoring.Max Horn
* Added SongIterator::clone() * got rid of songit_clone() * removed SIMSG_CLONE and related code * removed SongIterator::flags * turned songit_new_tee into TeeSongIterator constructor svn-id: r39288
2009-03-09SCI: Rewrote handling of song wakeup times & (iterator) delays, to avoid ↵Max Horn
rounding issues between ticks (1/60s) and milliseconds; also fixed a bug (coming from Glutton ;) where delays measured in millisecs were treated as ticks instead. Thanks to Walter for the precursor of this patch svn-id: r39263
2009-03-06SCI: Reduce SFX header dependenciesMax Horn
svn-id: r39159
2009-03-06SCI: Continued C++ification of SongIterator codeMax Horn
svn-id: r39158
2009-03-06SCI: C++ifyed SongIterator and its subclassesMax Horn
svn-id: r39152
2009-03-06SCI: Some cleanup to the SongIteratorMessage codeMax Horn
svn-id: r39151
2009-03-06SCI: Converted SongIterator::get_pcm_feed into a virtual methodMax Horn
svn-id: r39150
2009-03-06SCI: Renamed lots of classes related to song iterators; allocate song ↵Max Horn
iterators via new/delete instead of malloc/free svn-id: r39148
2009-03-04SCI: Merged polled player & PCMFeedAudioStream -> PolledPlayerAudioStreamMax Horn
svn-id: r39118