aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-16 21:16:51 -0400
committerPaul Gilbert2016-09-16 21:16:51 -0400
commitb01f68a44b4a51d5d87fca128518b4289fd85719 (patch)
tree12eca55dbe7d45a8dbed24d1c11463c5cc370e89
parentbf4beead20c65eb2f511e42c1eb86c4c72db0507 (diff)
downloadscummvm-rg350-b01f68a44b4a51d5d87fca128518b4289fd85719.tar.gz
scummvm-rg350-b01f68a44b4a51d5d87fca128518b4289fd85719.tar.bz2
scummvm-rg350-b01f68a44b4a51d5d87fca128518b4289fd85719.zip
XEEN: Fix setting music notes
-rw-r--r--engines/xeen/music.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/xeen/music.cpp b/engines/xeen/music.cpp
index f82b318289..9bf15ad2c5 100644
--- a/engines/xeen/music.cpp
+++ b/engines/xeen/music.cpp
@@ -492,7 +492,8 @@ bool AdlibMusicDriver::musStartNote(const byte *&srcP, byte param) {
debugC(3, kDebugSound, "musStartNote %x -> %x", note, freq);
setFrequency(param, freq);
- _channels[param]._frequency = freq | 0x2000;
+ freq |= 0x2000;
+ _channels[param]._frequency = freq;
setFrequency(param, freq);
} else {
srcP += 2;