aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/soundcmd.cpp
AgeCommit message (Collapse)Author
2009-12-28SCI/newmusic: Added pausecounter cause sierra sci also does thisMartin Kiewitz
svn-id: r46693
2009-12-28SCI/new music code: Implemented cmdSendMidi, and removed access to _argc ↵Filippos Karapetis
from sound commands svn-id: r46692
2009-12-28SCI/newmusic: Accept object 0:0 in cmdPauseHandle, pause the whole playlist ↵Martin Kiewitz
then (fixes castle of dr. brain during intro) svn-id: r46690
2009-12-28SCI: Start objectifying MusicEntryMax Horn
svn-id: r46687
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: Added a workaround for a music-related game bug in ↵Filippos Karapetis
Castle of Dr. Brain svn-id: r46678
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: fixed warningMartin Kiewitz
svn-id: r46663
2009-12-27Fixed priority bugFilippos Karapetis
svn-id: r46652
2009-12-27Removed _hasNodePtrFilippos Karapetis
svn-id: r46650
2009-12-27cmdGetPolyphony always returns true in SCI0, according to specsFilippos Karapetis
svn-id: r46647
2009-12-27SCI/new music code:Filippos Karapetis
- Implemented sound muting - Now saving/loading the master music volume svn-id: r46643
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-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-25Remove extra debug output which sneaked in.Eugene Sandulenko
svn-id: r46562
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-25Adjusted volume clippingFilippos Karapetis
svn-id: r46555
2009-12-25Limit volume range to 0 - 255Filippos Karapetis
svn-id: r46554
2009-12-25SCI/newmusic: find slot again after destroying it fixes kq6cd, lb2cd, added ↵Martin Kiewitz
debug output svn-id: r46553
2009-12-25Fixed variable capitalizationFilippos Karapetis
svn-id: r46552
2009-12-25Fix compilation.Johannes Schickel
svn-id: r46551
2009-12-25SCI/newmusic: ignore vol selector for games prior sci1late, fixes amiga ↵Martin Kiewitz
music in sq3 svn-id: r46547
2009-12-25Slight code readability cleanupFilippos Karapetis
svn-id: r46545
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-23SCI/new music code: Song handles are now unique (as SCI0 relies on them, ↵Filippos Karapetis
rather than on nodePtr) svn-id: r46512
2009-12-23Fixed compilationFilippos Karapetis
svn-id: r46511
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: Added a sanity check to avoid changing some selectors ↵Filippos Karapetis
that don't exist in SCI0 svn-id: r46505
2009-12-23SCI/new music code: Removed the checks for the nodePtr selector, as we ↵Filippos Karapetis
already have equivalent sanity checks (so that it's easier to add SCI0 functionality, which doesn't have a nodePtr selector) svn-id: r46504
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-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-22Initial implementation of music fading in the new music code. Added warnings ↵Filippos Karapetis
to all unimplemented/stub sound commands svn-id: r46481
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-21Restored sound volume functionality in the old music codeFilippos Karapetis
svn-id: r46466
2009-12-21Silenced some warnings to make DrMcCoy happier :)Filippos Karapetis
svn-id: r46464
2009-12-20Implemented cmdUpdateCues() in the new sound code and fixed a crash when ↵Filippos Karapetis
loading music with a resource number of zero svn-id: r46435
2009-12-20Started integrating the new sound code in the SoundCommandParser class. Some ↵Filippos Karapetis
cleanup svn-id: r46432
2009-12-20Moved all of the sound iterator code in its own directory, and added a ↵Filippos Karapetis
slight hack to the SoundCommandParser constructor svn-id: r46430
2009-12-03SCI: Don't call SciMusic for volume changes when using old codeMartin Kiewitz
svn-id: r46247
2009-12-03SCI: Dont init sound when using old sfx code (fixes assert)Martin Kiewitz
svn-id: r46246
2009-11-29Comment out unused variables.Johannes Schickel
svn-id: r46198
2009-11-29Started assigning the code from Greg's SCI engine to our sound commands - ↵Filippos Karapetis
still WIP svn-id: r46197
2009-11-20Fixed a regression in the LSL1 and LSL5 demos, which should work correctly ↵Filippos Karapetis
now. Some cleanup svn-id: r46020
2009-11-19Simplified some music checks for SCI0Filippos Karapetis
svn-id: r45994