aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/mods/maxtrax.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/mods/maxtrax.cpp b/sound/mods/maxtrax.cpp
index e53099e480..371fe952b5 100644
--- a/sound/mods/maxtrax.cpp
+++ b/sound/mods/maxtrax.cpp
@@ -235,8 +235,8 @@ int MaxTrax::calcNote(VoiceContext &voice) {
voice.periodOffset = 0;
const int maxOctave = patch.sampleOctaves - 1;
while (tone > PREF_PERIOD && octave < maxOctave) {
- tone -= 1 << 4;
- voice.periodOffset += 1 <<4;
+ tone -= 1 << 16;
+ voice.periodOffset += 1 << 16;
octave++;
}
tone -= voice.periodOffset;