Filippos Karapetis
364d37b302
SCI: some changes to the way reverb is handled
...
- "Invalid" SCI reverb values (127) are properly handled now
- SCI kDoSound(reverb) sets the global reverb (renamed it accordingly)
- kDoSound(reverb) can also return the current reverb if no parameter is sent
svn-id: r54457
2010-11-24 14:21:31 +00:00
Filippos Karapetis
3b07056a47
SCI: Moved the Object class in a separate file
...
svn-id: r54361
2010-11-19 08:18:24 +00:00
Martin Kiewitz
624d06b684
SCI: extending comment for prev. commit
...
svn-id: r52606
2010-09-06 19:03:55 +00:00
Martin Kiewitz
d618678982
SCI: dont play audio on kDoSound in hoyle4
...
hoyle4 has garbled audio data
svn-id: r52605
2010-09-06 19:00:43 +00:00
Martin Kiewitz
2bf82a8354
SCI: fix regression of r52569
...
fade in/out of samples
svn-id: r52604
2010-09-06 18:23:03 +00:00
Filippos Karapetis
d87fa1c890
SCI: Show a warning window regarding GM in some games.
...
Sierra has released a patch adding after market General MIDI support for 8 SCI1
games (LSL1, LSL5, Hoyle 3, SQ1, SQ4, Eco1 floppy, Longbow and Fairy Tales). If
the user has selected the General MIDI music driver in one of these games and
no associated MIDI patch is found, show an informational dialog on game startup
in order to inform the user to download Sierra's MIDI patch, together with some
short instructions.
svn-id: r52500
2010-09-02 21:50:00 +00:00
Martin Kiewitz
64313cd7f1
SCI: set master volume correctly
...
and merge it together with global volume, fixes bug #3053104 )
svn-id: r52484
2010-09-01 19:20:17 +00:00
Filippos Karapetis
135b9ee63c
SCI: Changed a warning into a debugC
...
svn-id: r52183
2010-08-18 07:58:38 +00:00
Filippos Karapetis
4db52c1ce1
SCI: Turned a warning into a debugC
...
svn-id: r51738
2010-08-04 13:35:56 +00:00
Martin Kiewitz
b45f2fcb97
SCI: fix fadeout on workarounds
...
svn-id: r51728
2010-08-04 09:15:37 +00:00
Filippos Karapetis
5ca6b33ba7
SCI: Silenced some sound related warnings. Added an empty function for kDoSound(Restore), called when restoring games
...
svn-id: r51661
2010-08-02 21:20:43 +00:00
Martin Kiewitz
55d7af0766
SCI: kDoSound(mute) behaviour change
...
svn-id: r51589
2010-08-01 19:57:03 +00:00
Filippos Karapetis
f22821af66
SCI: Added back debug output to sound commands
...
svn-id: r51460
2010-07-29 10:58:01 +00:00
Filippos Karapetis
1f60595cdc
SCI: Cleanup leftovers from the FreeSCI sound code
...
svn-id: r51178
2010-07-22 22:13:28 +00:00
Martin Kiewitz
a24de29358
SCI: renaming kDoSound(resume) to resumeAfterRestore
...
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-20 11:17:33 +00:00
Martin Kiewitz
961079ae19
SCI: disabling kDoSound(StopAll)
...
this call can't be right, gets called in kq1 several times and would stop background effects
svn-id: r51039
2010-07-19 22:11:06 +00:00
Martin Kiewitz
9cb23c8a7b
SCI: update sample ticker when paused
...
little adjustment of r51017
svn-id: r51018
2010-07-19 07:37:22 +00:00
Martin Kiewitz
d952e48a57
SCI: change kDoSound(updateCues) for samples
...
only set signal when sample was/is playing, fixes qfg2 genie intro
svn-id: r51017
2010-07-19 07:29:17 +00:00
Martin Kiewitz
aa5a1ddb47
SCI: if game starts fading, stops music and later starts music again don't resume fading - fixes lsl6 music when going in from swimming pool
...
svn-id: r50995
2010-07-18 16:22:16 +00:00
Martin Kiewitz
46b27926b2
SCI: adding obj in kDoSound debug output
...
svn-id: r50994
2010-07-18 16:02:16 +00:00
Martin Kiewitz
3ceb02f08a
SCI: adding signatures for 4-parameter variant of kDoSound(sendMidi), needs to get figured out how this works - fixes signature mismatch in lsl1
...
svn-id: r50937
2010-07-16 13:37:19 +00:00
Martin Kiewitz
38d79f60e3
SCI: changing signature for kDoSound(resume) it seems its called right after restoring to resume music - which we do already automatically
...
svn-id: r50800
2010-07-11 11:52:17 +00:00
Martin Kiewitz
ce6a73adf5
SCI: updated debug output from kDoSound
...
svn-id: r50781
2010-07-10 13:19:20 +00:00
Martin Kiewitz
18d1ab8c70
SCI: move comments and change selector for sci0 sound in kDoSoundPause, also allow pausing everything even for sci1early (qfg2 is using it)
...
svn-id: r50765
2010-07-09 18:11:42 +00:00
Martin Kiewitz
eddd6d0dba
SCI: actually all sound-sci0 games used a completely different kDoSoundPause logic, implement it - fixes all sorts of games not pausing when going to restore menu and more
...
svn-id: r50760
2010-07-09 16:05:47 +00:00
Martin Kiewitz
aadf2e9765
SCI: added currently commented-out pauseSound implementation for some sci0 games, allowing integer for that subfunction
...
svn-id: r50759
2010-07-09 14:11:27 +00:00
Martin Kiewitz
b8933d7e8f
SCI: removing unneeded mutex locking inside sci0 update cues
...
svn-id: r50758
2010-07-09 13:01:48 +00:00
Martin Kiewitz
b602e7071b
SCI: fixing regression of r50755 - fixing kDoSoundSendMidi
...
svn-id: r50757
2010-07-09 12:30:34 +00:00
Martin Kiewitz
ba776fb293
SCI: implemented subsignatures for kDoSound
...
svn-id: r50755
2010-07-09 12:06:41 +00:00
Filippos Karapetis
bff3e89e48
SCI: Removed the FreeSCI music code
...
svn-id: r50532
2010-06-30 13:49:05 +00:00
Max Horn
b09996cb5c
SCI: Rewrap yet more comments
...
svn-id: r50505
2010-06-29 20:50:52 +00:00
Filippos Karapetis
59c908e97d
Changed a warning which seems like regular SCI behavior into a debugC
...
svn-id: r50218
2010-06-24 13:44:27 +00:00
Filippos Karapetis
0a102981f0
Moved the SelectorCache struct inside selector.h, where it belongs, and fixed some header dependencies in the process
...
svn-id: r50183
2010-06-23 15:23:37 +00:00
Filippos Karapetis
ac4659b92a
Added several unimplemented kDisplay subops, as well as a new sound command, found in the demo of Longbow
...
svn-id: r49983
2010-06-18 01:11:00 +00:00
Filippos Karapetis
9c1ec81d76
Strict mode: Turned several severe errors (almost all detection related) into errors, instead of warnings
...
svn-id: r49972
2010-06-17 23:45:38 +00:00
Martin Kiewitz
423029c027
SCI: implemented channel muting for sci1, finally fixes lsl5 paino scene with patti
...
svn-id: r49926
2010-06-17 11:54:54 +00:00
Martin Kiewitz
3a8e11767d
SCI: decreasing channel given to us on cmdSendMidi by one, so mute command now matches the right channel. sierra sci also decreased by one (their channel is 1-based)
...
svn-id: r49924
2010-06-17 11:05:39 +00:00
Filippos Karapetis
e93f8902a8
Cleanup of the savegame code:
...
- 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-15 07:20:53 +00:00
Filippos Karapetis
f4739f9f68
Added debug output to kDoAudio and some music commands. Also added a warning 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-12 11:41:22 +00:00
Filippos Karapetis
eb4ec596cd
Use the SELECTOR() macro for readability
...
svn-id: r49563
2010-06-10 09:18:57 +00:00
Martin Kiewitz
f743468ec7
SCI: if song isn't playing, set signal and don't set fadeout/fadein variables - fixes lsl3 music lost after entering/exiting tv room (bug #3007406 )
...
svn-id: r49500
2010-06-08 09:36:27 +00:00
Filippos Karapetis
1fd3877ec7
Cleanup
...
svn-id: r49333
2010-05-30 20:18:42 +00:00
Filippos Karapetis
67de5b1bd3
Mass renaming of selector-related functions, and removed some defines which 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-29 23:37:15 +00:00
Martin Kiewitz
dad3ad86ea
SCI: read out vol selector on initSound/playSound for sci1early (soundversion) as well - fixes lsl1demo
...
svn-id: r49285
2010-05-28 09:29:05 +00:00
Martin Kiewitz
cfed70df07
SCI: fixing resuming samples - fixes hang when ship is flying away happening when you entered menu during that sequence
...
svn-id: r49261
2010-05-27 11:26:37 +00:00
Martin Kiewitz
b069b9fe96
SCI: reenabling "stopAllSounds" code disabled in r49101 - isn't called anymore since priority is honored so it may have been right after all
...
svn-id: r49158
2010-05-23 16:42:49 +00:00
Martin Kiewitz
d27e32aa19
SCI: fix regression of r49156 - if multiple songs are stored for 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-23 13:22:58 +00:00
Martin Kiewitz
264fde962b
SCI: sound code now queues up music in sci0, wip-code: not reacting on priority yet - fixes iceman room 14
...
svn-id: r49109
2010-05-19 21:10:43 +00:00
Martin Kiewitz
e243c87fc0
SCI: updated comment on kDoSound(12)
...
svn-id: r49108
2010-05-19 19:41:10 +00:00
Martin Kiewitz
3f10841ae8
SCI: removed cmdStopAllSounds(), can't be right - added FIXME - fixes iceman room 14 music stopping within 1-2 seconds
...
svn-id: r49101
2010-05-19 14:54:39 +00:00