ref: 0931e5424bee3e4fc980fb40710a0aaba8e272de
parent: cef9c3e7d4d76dc8a9311e49d0bcfe35ada651a9
author: Olav Sørensen <olav.sorensen@live.no>
date: Thu Nov 24 15:12:34 EST 2022
Small cleanup
--- a/src/ft2_replayer.c
+++ b/src/ft2_replayer.c
@@ -311,7 +311,7 @@
if (ui.configScreenShown && editor.currConfigScreen == CONFIG_SCREEN_IO_DEVICES)
{
// update "frequency table" radiobutton, if it's shown
- setConfigIORadioButtonStates();
+ setConfigIORadioButtonStates();
// update mid-C freq. in instr. editor (it can slightly differ between Amiga/linear)
if (ui.instEditorShown)
@@ -404,7 +404,7 @@
dExp2MulTab[i] = 1.0 / exp2(i); // 1/(2^i)
for (int32_t i = 0; i < 4*12*16; i++)
- dLogTab[i] = 8363.0 * exp2(i / 768.0) * 256.0;
+ dLogTab[i] = (8363.0 * 256.0) * exp2(i / (4.0 * 12.0 * 16.0));
}
void calcReplayerVars(int32_t audioFreq)