From 84e96bc513f1e17709312fb74d4faa46c6a741ca Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Thu, 9 Jul 2009 00:19:17 +0000 Subject: fixed up some constants svn-id: r42276 --- sound/mods/maxtrax.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sound') 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; -- cgit v1.2.3