aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/soundcmd.cpp
AgeCommit message (Collapse)Author
2010-07-22SCI: Cleanup leftovers from the FreeSCI sound codeFilippos Karapetis
svn-id: r51178
2010-07-20SCI: renaming kDoSound(resume) to resumeAfterRestoreMartin Kiewitz
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-19SCI: disabling kDoSound(StopAll)Martin Kiewitz
this call can't be right, gets called in kq1 several times and would stop background effects svn-id: r51039
2010-07-19SCI: update sample ticker when pausedMartin Kiewitz
little adjustment of r51017 svn-id: r51018
2010-07-19SCI: change kDoSound(updateCues) for samplesMartin Kiewitz
only set signal when sample was/is playing, fixes qfg2 genie intro svn-id: r51017
2010-07-18SCI: if game starts fading, stops music and later starts music again don't ↵Martin Kiewitz
resume fading - fixes lsl6 music when going in from swimming pool svn-id: r50995
2010-07-18SCI: adding obj in kDoSound debug outputMartin Kiewitz
svn-id: r50994
2010-07-16SCI: adding signatures for 4-parameter variant of kDoSound(sendMidi), needs ↵Martin Kiewitz
to get figured out how this works - fixes signature mismatch in lsl1 svn-id: r50937
2010-07-11SCI: changing signature for kDoSound(resume) it seems its called right after ↵Martin Kiewitz
restoring to resume music - which we do already automatically svn-id: r50800
2010-07-10SCI: updated debug output from kDoSoundMartin Kiewitz
svn-id: r50781
2010-07-09SCI: move comments and change selector for sci0 sound in kDoSoundPause, also ↵Martin Kiewitz
allow pausing everything even for sci1early (qfg2 is using it) svn-id: r50765
2010-07-09SCI: actually all sound-sci0 games used a completely different kDoSoundPause ↵Martin Kiewitz
logic, implement it - fixes all sorts of games not pausing when going to restore menu and more svn-id: r50760
2010-07-09SCI: added currently commented-out pauseSound implementation for some sci0 ↵Martin Kiewitz
games, allowing integer for that subfunction svn-id: r50759
2010-07-09SCI: removing unneeded mutex locking inside sci0 update cuesMartin Kiewitz
svn-id: r50758
2010-07-09SCI: fixing regression of r50755 - fixing kDoSoundSendMidiMartin Kiewitz
svn-id: r50757
2010-07-09SCI: implemented subsignatures for kDoSoundMartin Kiewitz
svn-id: r50755
2010-06-30SCI: Removed the FreeSCI music codeFilippos Karapetis
svn-id: r50532
2010-06-29SCI: Rewrap yet more commentsMax Horn
svn-id: r50505
2010-06-24Changed a warning which seems like regular SCI behavior into a debugCFilippos Karapetis
svn-id: r50218
2010-06-23Moved the SelectorCache struct inside selector.h, where it belongs, and ↵Filippos Karapetis
fixed some header dependencies in the process svn-id: r50183
2010-06-18Added several unimplemented kDisplay subops, as well as a new sound command, ↵Filippos Karapetis
found in the demo of Longbow svn-id: r49983
2010-06-17Strict mode: Turned several severe errors (almost all detection related) ↵Filippos Karapetis
into errors, instead of warnings svn-id: r49972
2010-06-17SCI: implemented channel muting for sci1, finally fixes lsl5 paino scene ↵Martin Kiewitz
with patti svn-id: r49926
2010-06-17SCI: decreasing channel given to us on cmdSendMidi by one, so mute command ↵Martin Kiewitz
now matches the right channel. sierra sci also decreased by one (their channel is 1-based) svn-id: r49924
2010-06-15Cleanup of the savegame code:Filippos Karapetis
- Added a saveLoadWithSerializer() method to the reg_t class - Moved SegManager::reconstructClones() inside savegame.cpp - Moved SoundCommandParser::syncPlayList() and SoundCommandParser::reconstructPlayList() inside savegame.cpp svn-id: r49683
2010-06-12Added debug output to kDoAudio and some music commands. Also added a warning ↵Filippos Karapetis
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-10Use the SELECTOR() macro for readabilityFilippos Karapetis
svn-id: r49563
2010-06-08SCI: if song isn't playing, set signal and don't set fadeout/fadein ↵Martin Kiewitz
variables - fixes lsl3 music lost after entering/exiting tv room (bug #3007406) svn-id: r49500
2010-05-30CleanupFilippos Karapetis
svn-id: r49333
2010-05-29Mass renaming of selector-related functions, and removed some defines which ↵Filippos Karapetis
were just cloaking functions with a different name - GET_SEL32 -> readSelector - GET_SEL32V -> readSelectorValue - PUT_SEL32 -> writeSelector - PUT_SEL32V -> writeSelectorValue Also, changed some selector-related function names and variables to CamelCase svn-id: r49317
2010-05-28SCI: read out vol selector on initSound/playSound for sci1early ↵Martin Kiewitz
(soundversion) as well - fixes lsl1demo svn-id: r49285
2010-05-27SCI: fixing resuming samples - fixes hang when ship is flying away happening ↵Martin Kiewitz
when you entered menu during that sequence svn-id: r49261
2010-05-23SCI: reenabling "stopAllSounds" code disabled in r49101 - isn't called ↵Martin Kiewitz
anymore since priority is honored so it may have been right after all svn-id: r49158
2010-05-23SCI: fix regression of r49156 - if multiple songs are stored for ↵Martin Kiewitz
resume-play, use the last one - fixes iceman wrong music played after going through door in room 14 - still not sure about this, added fixme svn-id: r49157
2010-05-19SCI: sound code now queues up music in sci0, wip-code: not reacting on ↵Martin Kiewitz
priority yet - fixes iceman room 14 svn-id: r49109
2010-05-19SCI: updated comment on kDoSound(12)Martin Kiewitz
svn-id: r49108
2010-05-19SCI: removed cmdStopAllSounds(), can't be right - added FIXME - fixes iceman ↵Martin Kiewitz
room 14 music stopping within 1-2 seconds svn-id: r49101
2010-05-19SCI: cleanup soundcode - number renamed to resourceId, prio renamed to priorityMartin Kiewitz
svn-id: r49098
2010-05-18SCI: set signal on fadeOut and also set signal when fade is requested but ↵Martin Kiewitz
sound is not playing (& show warning in that case) - fixes iceman hang after fireworks in room 14 svn-id: r49087
2010-05-11SCI: remove unneeded _mutex lock to fix deadlock issueMartin Kiewitz
svn-id: r49006
2010-05-10SCI: set signal to SIGNAL_OFFSET, when a music slot is played that doesn't ↵Martin Kiewitz
contain supported data - fixes lsl5 mud wrestling "regression" in new music/sound code (worked before with old music/sound engine) svn-id: r49000
2010-05-03SCI: set signal in SCI0/SCI01 games, when samples have been played only. ↵Martin Kiewitz
fixes sq3 guys from andromeda, but also doesn't screw up music in sq3new/kq1 - added comments about this issue svn-id: r48918
2010-05-03SCI: reverting r48805 - caused regression in sq3new/kq1Martin Kiewitz
svn-id: r48915
2010-04-26SCI: changing comment slightly about setting signal selector in stopSound ↵Martin Kiewitz
for SCI0 svn-id: r48806
2010-04-26SCI: also set signal selector when stopping sounds for SCI0 as well - fixes ↵Martin Kiewitz
sq3 freeing 2 guys from andromeda endless loop svn-id: r48805
2010-02-15SCI: Remove sound/audio.h include from engine/state.hMax Horn
svn-id: r48063
2010-02-13SCI: Fix compiling with USE_OLD_MUSIC_FUNCTIONS enabledMax Horn
svn-id: r48051
2010-02-13SCI: Add global g_sci pointer to the active SciEngine instanceMax Horn
svn-id: r48046
2010-02-05SCI: Add a 'SELECTOR' macroMax Horn
svn-id: r47918
2010-01-30SCI: Remove extra '\n's in debugC messagesWillem Jan Palenstijn
svn-id: r47707