Commit Graph
169 Commits
Author SHA1 Message Date
Willem Jan Palenstijn e37be9f535 SCI: Use correct priority selector in SoundCmd
It was using 'pri' instead of 'priority', apparently due to a
selector number->name translation error from 544daa5c31.

Thanks to waltervn for spotting this.
2013-01-29 20:55:40 +01:00
Filippos Karapetis 1286710248 SCI: Fix bug #3578335 - "SCI: Mixed-Up Mother Goose EGA - crash upon choosing kid"
In several SCI0 games, the parameter to kDoSoundFade can be null.
We handle that case, instead of adding individual workarounds per game
2012-10-22 12:47:28 +03:00
Filippos Karapetis b19ccb9d1e SCI: Set the correct audio type for SCI1.1 sound effects, fixing bug #3554709
Now, sound effects in SCI1.1 games will no longer be incorrectly using the speech
sound volume. This avoids them being silenced in floppy games that are flagged
as not having speech. Fixes bug #3554709 - "SCI: Digital SFX don't play when
Override Global Audio set"
2012-08-20 03:22:56 +03:00
Filippos Karapetis 8524ebd699 SCI: Fix script bug #3555404 - "SCI: KQ6 Spider Scene Game Freeze" 2012-08-20 02:58:37 +03:00
Filippos Karapetis 152b340a9a SCI: Remove a music fading hack used for the intro of Longbow 2012-06-26 13:22:05 +03:00
Filippos Karapetis 2b50824133 SCI: Add setter/getter methods to reg_t's
No functionality change has been made with this commit. This avoids
setting and getting the reg_t members directly, and is the basis of any
future work on large SCI3 scripts (larger than 64KB)
2012-06-18 05:24:06 +03:00
Filippos Karapetis 6a49d3eadd ENGINES: Return all available custom GUI options if no target is specified
This is used to set default settings for all custom game options when an
engine starts
2012-03-31 13:55:03 +03:00
Filippos Karapetis 536a7e407f SCI: Hook up the digital SFX and CD audio options
The relevant code wasn't added in the newer commits - this was an
oversight from my part
2012-03-25 16:40:49 +03:00
Matthew Hoops 865c54c125 SCI: Fix GK1 demo sounds
This is a regression from 9fd66deb43 and, despite the commit message, was *not* fixed by 1736345906
2012-03-05 12:22:13 -05:00
Filippos Karapetis 3752396aef SCI: Always prefer digital sound effects to prevent confusion to users
This toggle will be enabled again when a more user-friendly GUI option
is possible
2011-12-28 13:21:19 +02:00
Filippos Karapetis 8496b5c4d8 SCI: Rename _bMultiMidi to _useDigitalSFX and only initialize it inside SoundCommandParser 2011-12-28 13:14:55 +02:00
Filippos Karapetis 1736345906 SCI: The demo of GK1 has no alternate sound effects.
This fixes the sound effect heard in the "Day 1" screen
2011-10-20 19:02:15 +03:00
Filippos Karapetis e7260d992c SCI: Updated a comment inside processPlaySound() 2011-10-13 14:03:57 +03:00
Filippos Karapetis 0166665926 SCI: Fixed a long-standing bug in kDoSound(init)
The sound handle should not be set in kDoSound(init), but in
kDoSound(play). This is verified against several SCI versions,
plus game scripts check if a sound slot is playing primarily
by checking its handle. Fixes the sound in Shivers and probably
an assortment of other sound related bugs
2011-10-12 12:49:39 +03:00
Filippos Karapetis 4e1face890 SCI: Mixed Adlib/MIDI mode for audio resources should always be enabled in SCI32 2011-10-10 12:20:52 +03:00
Filippos Karapetis b17d424257 SCI: Fixed menu music in GK1 when multi MIDI is disabled
A regression from commit 9fd66de
2011-10-10 01:41:09 +03:00
Filippos Karapetis 9fd66deb43 SCI: Changes to the sound resource initialization code
- Unified the sound resource initialization code in
processInitSound() and reconstructPlayList()
- Now checking the "Mixed Adlib/MIDI" mode checkbox for SCI1.1 digital
audio sound effects, like it's done for SCI0 - SCI1 sound effects. If
it's unchecked, their MIDI counterparts will play instead, if
available
2011-09-26 20:02:34 +03:00
Filippos Karapetis e552bc57ba SCI: Always reset hold when starting a new song. Fixes bug #3413589 - "SCI: KQ6CD: Game stops responding in the catacombs"
kDoSoundSetHold is always called after kDoSoundPlay. A regression from
commit 4f3b85f4ef
2011-09-24 18:46:55 +03:00
Filippos Karapetis 077acc5575 SCI: Fixed bug #3413301 - "SCI: KQ6CD: Game stops responding at the bookworm" 2011-09-23 17:42:14 +03:00
Filippos Karapetis 996deff15b SCI: Fixed bug #3392767 - "SCI: SQ4 (English/CD/Win): Engine Abort In Timepod Hangar"
This bug only manifested in the Windows version of SQ4CD. Some Windows
MIDI music tracks are missing from room 530, which messed up the
animations in that scene, and led to a crash. Moved the code that
obtains the song number from an object into a separate function. Also,
fixed a bug in kDoSoundSetPriority().
2011-08-25 02:52:58 +03:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Willem Jan Palenstijn 9f74a6eda2 SCI: Clarify comment from rev 5654e12 further 2011-04-28 12:03:10 +02:00
md5 d855092f96 SCI: Clarified comment in rev 5654e12
It's a bad idea to write comments when half asleep :P
2011-04-28 10:21:26 +03:00
md5 5654e12575 SCI: Added a more specific workaround for bug #3267956. This fixes bug #3291115 - "KQ6: Game freezes when getting paper from web" 2011-04-28 04:14:54 +03:00
md5 bfef0f5a6f SCI: Fixed fading-related bugs #3267956 and #3041738 2011-04-03 19:02:14 +03:00
md5 1dcce4445c SCI: Reverted rc7bfbc3 and fixed the actual cause of bug #3106107
While fast forwarding a song, disable its hold value together with any possible
sound looping, so that the song won't loop forever.
2011-02-28 01:06:29 +02:00
md5 c7bfbc31e2 SCI: Fixed bug #3106107 - "QFG3: Crash when saving outside palace"
Ignore requests to alter a song's hold value while it's being faded, and reset
a song's hold value when fading starts. This ensures that the song will actually
stop when fading is done and won't keep looping forever.
2011-02-28 00:18:23 +02:00
md5 8024f40638 SCI: Changed the fix for the intro of Longbow (bug #3044844) into a hack for that scene. Fixes the freeze in LSL6 (bug #3192166). Fading in KQ5 is unaffected by this. 2011-02-25 21:45:39 +02:00
md5 9ad4ad1abc SCI: Fixed two bugs related to music fading
- bug #3037594: "KQ5: Music not fading when brigands leave temple"
- bug #3044844: "LONGBOW: Intro skips each first verse of song"
2011-02-24 02:17:28 +02:00
Filippos Karapetis 32d7e687ee SCI: debugC calls no longer require a debug level of 2 to show output
svn-id: r55086
2011-01-01 12:48:12 +00:00
Filippos Karapetis 601494cad4 SCI: implemented reverb handling and related functionality
svn-id: r54478
2010-11-25 16:09:45 +00:00
Filippos Karapetis 2c2f3a97e6 SCI: Added support for the alternate Windows MIDI soundtracks of the CD versions of EcoQuest, Jones, KQ5 and SQ4
svn-id: r54476
2010-11-25 14:22:09 +00:00
Filippos Karapetis 52898b6336 SCI: Fixed digital audio at the beginning of KQ5CD and removed a hack for the Windows version
svn-id: r54466
2010-11-25 02:21:07 +00:00
Filippos Karapetis dcd1326970 SCI: Some renaming and added several TODOs concerning reverb
svn-id: r54461
2010-11-24 16:01:30 +00:00
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