diff options
author | Kari Salminen | 2008-08-16 11:38:43 +0000 |
---|---|---|
committer | Kari Salminen | 2008-08-16 11:38:43 +0000 |
commit | f055cf5c3edd202bd8294edca3e0df98d22edffa (patch) | |
tree | 5bcfc4bb17918817617ef6e95b29ff3aac3babfe | |
parent | c91bf34039bd1bfe03a52b998d399e0dd501f4ac (diff) | |
download | scummvm-rg350-f055cf5c3edd202bd8294edca3e0df98d22edffa.tar.gz scummvm-rg350-f055cf5c3edd202bd8294edca3e0df98d22edffa.tar.bz2 scummvm-rg350-f055cf5c3edd202bd8294edca3e0df98d22edffa.zip |
Changed AdlibRegisterSoundInstrument's member variables from unsigned 16-bit to unsigned 8-bit. Maybe this'll fix the crash in AdlibSoundDriver::setupInstrument() eriktorbjorn was getting in Future Wars when teleporting from the photocopier room to the swamp. There was a OPLWriteReg(_opl, 0x80 | car, reg->sustainRelease) call with sustainRelease = 65452. Now there shouldn't be any such calls made because the sustainRelease value is always 8-bit now. Hopefully this won't break anything.
svn-id: r33935
-rw-r--r-- | engines/cine/sound.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/cine/sound.cpp b/engines/cine/sound.cpp index 3618350476..164c5a9ca5 100644 --- a/engines/cine/sound.cpp +++ b/engines/cine/sound.cpp @@ -79,13 +79,13 @@ const int PCSoundDriver::_noteTable[] = { const int PCSoundDriver::_noteTableCount = ARRAYSIZE(_noteTable); struct AdlibRegisterSoundInstrument { - uint16 vibrato; - uint16 attackDecay; - uint16 sustainRelease; - uint16 feedbackStrength; - uint16 keyScaling; - uint16 outputLevel; - uint16 freqMod; + uint8 vibrato; + uint8 attackDecay; + uint8 sustainRelease; + uint8 feedbackStrength; + uint8 keyScaling; + uint8 outputLevel; + uint8 freqMod; }; struct AdlibSoundInstrument { |