diff options
author | Jamieson Christian | 2003-07-11 10:47:10 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-07-11 10:47:10 +0000 |
commit | c4455fc0fd44ee2ee236cf4dd955c6c925f50e26 (patch) | |
tree | a225a5d09ffd8d05b468bfcb2f4affebae765223 /backends | |
parent | 378856a693942f7a6fa71c951bcba003d2d5f0c0 (diff) | |
download | scummvm-rg350-c4455fc0fd44ee2ee236cf4dd955c6c925f50e26.tar.gz scummvm-rg350-c4455fc0fd44ee2ee236cf4dd955c6c925f50e26.tar.bz2 scummvm-rg350-c4455fc0fd44ee2ee236cf4dd955c6c925f50e26.zip |
Fix for OOB Adlib frequencies
svn-id: r8907
Diffstat (limited to 'backends')
-rw-r--r-- | backends/midi/adlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/midi/adlib.cpp b/backends/midi/adlib.cpp index 06a800603e..9483c14b44 100644 --- a/backends/midi/adlib.cpp +++ b/backends/midi/adlib.cpp @@ -1521,5 +1521,5 @@ void MidiDriver_ADLIB::adlib_note_on(int chan, byte note, int mod) { assert(chan >= 0 && chan < 9); code = (note << 7) + mod; curnote_table[chan] = code; - adlib_playnote(chan, channel_table_2[chan] + code); + adlib_playnote(chan, (int16) channel_table_2[chan] + code); } |