aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2006-03-12 17:08:46 +0000
committerJohannes Schickel2006-03-12 17:08:46 +0000
commit9d3136fb71858a73a9f4aef8e33e0e444610cb5e (patch)
tree3d2817781cfed0882c8e48bf6cabde2adf870006 /engines
parent72d2ef72218e419fe8b0b175e7ea7cef9ecbc525 (diff)
downloadscummvm-rg350-9d3136fb71858a73a9f4aef8e33e0e444610cb5e.tar.gz
scummvm-rg350-9d3136fb71858a73a9f4aef8e33e0e444610cb5e.tar.bz2
scummvm-rg350-9d3136fb71858a73a9f4aef8e33e0e444610cb5e.zip
Corrects former commit which deleted sound file loading after the scene with malcolm and kallak.
Also corrects callback50() which seem to improve the sound a bit in the kallak writing scene. svn-id: r21238
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/kyra.cpp1
-rw-r--r--engines/kyra/sound_adlib.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp
index 74505b4adf..97644c0262 100644
--- a/engines/kyra/kyra.cpp
+++ b/engines/kyra/kyra.cpp
@@ -646,6 +646,7 @@ void KyraEngine::startup() {
error("Could not load \"_NPC.EMC\" script");
}
+ snd_playTheme(1);
enterNewScene(_currentCharacter->sceneId, _currentCharacter->facing, 0, 0, 1);
if (_abortIntroFlag && _skipFlag) {
diff --git a/engines/kyra/sound_adlib.cpp b/engines/kyra/sound_adlib.cpp
index c74d9a0f1a..b15a8514a0 100644
--- a/engines/kyra/sound_adlib.cpp
+++ b/engines/kyra/sound_adlib.cpp
@@ -844,7 +844,7 @@ void AdlibDriver::setupDuration(uint8 duration, OutputState &state) {
debugC(9, kDebugLevelSound, "setupDuration(%d, %d)", duration, &state - _outputTables);
_continueFlag = duration;
if (state.unk11) {
- state.unk5 = duration + (getRandomNr() & state.unk11 & 0xFF);
+ state.unk5 = duration + (getRandomNr() & state.unk11);
return;
}
if (state.unk12) {
@@ -1666,7 +1666,7 @@ int AdlibDriver::updateCallback50(uint8 *&dataptr, OutputState &state, uint8 val
_unk4 = 0;
// Amplitude Modulation Depth / Vibrato Depth / Rhythm
- writeOPL(0xBD, value & _unkOutputByte2);
+ writeOPL(0xBD, _unkOutputByte2 & 0xC0);
return 0;
}