aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/music.cpp
AgeCommit message (Collapse)Author
2009-12-28cleanupMax Horn
svn-id: r46686
2009-12-28SCI: Make some code comply to our naming conventionsMax Horn
svn-id: r46685
2009-12-28SCI/new sound code:Filippos Karapetis
- Made the SciMusic class private, and added wrapper functions for invoking specific methods of SciMusic from outside the SoundCommandParser class - Many SCI games keep creating and destroying sound effects constantly (i.e. many times per second). Therefore, another scheme has been devised, which replaces the mutex that was in place. Whenever a sound command is run which operates on a specific object in the play list, we disallow onTimer() from kicking in. This isn't ideal, but it does stop random deadlocks because of locked mutexes without any noticeable side effects svn-id: r46681
2009-12-28SCI/new music code: Implemented the "songlib" debug commandFilippos Karapetis
svn-id: r46670
2009-12-28SCI/new music code: Fixed a race condition when removing a sound from the ↵Filippos Karapetis
playlist svn-id: r46668
2009-12-28SCI/new music code: Fixed music fading in SCI2 - seems like setting the ↵Filippos Karapetis
signal when fading is done isn't necessary svn-id: r46666
2009-12-27SCI/new music code:Filippos Karapetis
- Switched to Common::StackLock for mutexes - Renamed Music::stopAll() -> Music::clearPlayList() - Implemented a better Music::stopAll method, which stops all sounds with proper signals, instead of destroying them - Renamed the SCI0 command cmdGetPlayNext -> cmdStopAllSounds and implemented it svn-id: r46665
2009-12-27SCI/newmusic: fix getting of mastervolume. cause of rounding we will ↵Martin Kiewitz
otherwise decrease mastervolume by 1 on every access resulting in no sound after a while :) (fixes lb2, sq4cd and others) svn-id: r46654
2009-12-27SCI/newmusic: Fixed fading (fixes intro of castle of brain)Martin Kiewitz
svn-id: r46651
2009-12-27Added some currently disabled code to be used when sound fading is done ↵Filippos Karapetis
(needs testing) svn-id: r46649
2009-12-27SCI/new music code:Filippos Karapetis
- Implemented sound muting - Now saving/loading the master music volume svn-id: r46643
2009-12-27SCI/newmusic: moving commented assertMartin Kiewitz
svn-id: r46632
2009-12-27SCI/newmusic: now playing sample data for sci0 games (this also fixes sq3 ↵Martin Kiewitz
amiga freezing during pot exit) svn-id: r46631
2009-12-27SCI/newmusic: now adding digital sample data as separate channel for sci0 ↵Martin Kiewitz
games (not yet playing) svn-id: r46629
2009-12-27SCI/new music code: Filippos Karapetis
- Removed a lot of accessors to the music list, and protected the 2 which are used now with mutexes - Rewrote the music list save/load code to be methods of the SciMusic class svn-id: r46623
2009-12-27SCI/new music code: split the MidiParser class into a separate fileFilippos Karapetis
svn-id: r46611
2009-12-27The state selector is only available in SCI0 gamesFilippos Karapetis
svn-id: r46610
2009-12-26SCI/newmusic: added state change to sample play as wellMartin Kiewitz
svn-id: r46607
2009-12-26SCI/newmusic: Update state when music is done playing (fixes sq3)Martin Kiewitz
svn-id: r46606
2009-12-26Hopefully fixed the freezes/deadlocks in the new music code (e.g. in LSL5 ↵Filippos Karapetis
and Castle of Dr. Brain) svn-id: r46579
2009-12-26- Made the music playlist privateFilippos Karapetis
- Removed some leaks - Fixed the destruction of the music playlist - Made mutexes more sane - Removed some dead code - Cleanup svn-id: r46578
2009-12-26Restored the mutexes in onTimer, and removed them from soundKill - fixes the ↵Filippos Karapetis
freeze in LSL5 intro svn-id: r46577
2009-12-26SCI/newmusic: Removed mutex from onTimer, fixes freeze in sci1 gamesMartin Kiewitz
svn-id: r46575
2009-12-26Some more work on the new music codeFilippos Karapetis
svn-id: r46569
2009-12-25SCI/newmusic: added filter support for kq4early and adlibMartin Kiewitz
svn-id: r46563
2009-12-25- Introduced a new version in the sound version detection routine, as SCI0 ↵Filippos Karapetis
early games had different sound than SCI0 late ones - Changed sound-related debug output from printf's into debugC calls svn-id: r46560
2009-12-25Added mutexes in music functionsFilippos Karapetis
svn-id: r46556
2009-12-25Adjusted volume clippingFilippos Karapetis
svn-id: r46555
2009-12-25Limit volume range to 0 - 255Filippos Karapetis
svn-id: r46554
2009-12-25Fixed variable capitalizationFilippos Karapetis
svn-id: r46552
2009-12-25SCI/newmusic: _signalSet, _signalToSet init, debug output added for signalsMartin Kiewitz
svn-id: r46548
2009-12-25SCI/newmusic: Filter was processing one byte too muchMartin Kiewitz
svn-id: r46544
2009-12-24SCI/newmusic: Set signal after waiting for delta and not immediately (fixes ↵Martin Kiewitz
iceman intro) svn-id: r46539
2009-12-24SCI/newmusic: support for 0xF8 delta in parseNextEvent, changes to channel ↵Martin Kiewitz
filtering (including temporary debug output) svn-id: r46538
2009-12-24Silence some gcc warnings.Matthew Hoops
svn-id: r46535
2009-12-24SCI: new music code / signals now almost correctly triggeredMartin Kiewitz
svn-id: r46532
2009-12-24Obtain channel mask from music drivers. Also, added a warning in cmdReverb() ↵Filippos Karapetis
to indicate that it's a stub function svn-id: r46531
2009-12-24SCI: channels are now filtered for sci0 (fixes garbled music)Martin Kiewitz
svn-id: r46525
2009-12-23SCI/new music code: Some fixes for SCI0 music, and removed a duplicate enumFilippos Karapetis
svn-id: r46510
2009-12-23SCI: new music code / variable-names changed to make it more verboseMartin Kiewitz
svn-id: r46502
2009-12-23SCI/new music code: Do not cache the signal selector, as it needs to be ↵Filippos Karapetis
always updated, so that animations can be synced properly by the game scripts. Fixes KQ6 svn-id: r46496
2009-12-22Disabled some currently unused codeFilippos Karapetis
svn-id: r46488
2009-12-22SCI/new music code:Filippos Karapetis
- Reverted the code to use local copies of certain sound object selectors, like what was done before - Simplified and fixed the SCI1.1 digital sound effect playing code - Removed some duplicate code - Renamed some sound commands svn-id: r46487
2009-12-22Silenced some warnings to protect DrMcCoy from incoming BorgFilippos Karapetis
svn-id: r46482
2009-12-22Started implementing SCI1.1 digital sound effect playing in the new music codeFilippos Karapetis
svn-id: r46479
2009-12-22The detectMusicDriver() function returns MD_-something, not MDT_-something.Torbjörn Andersson
svn-id: r46478
2009-12-22Fixed looping sounds in the new sound codeFilippos Karapetis
svn-id: r46477
2009-12-22Some bugfixes to the new music codeFilippos Karapetis
svn-id: r46473
2009-12-21Some updates to the new music codeFilippos Karapetis
svn-id: r46467
2009-12-20Directly modify the sound objects, instead of modifying a local copy. Remove ↵Filippos Karapetis
duplicate code (which now resides in resource.*) svn-id: r46427