History

Small cleanup

Olav Sørensen committed 3 years ago

Commit 0931e541 parent cef9c3e1 file · +2 −2Browse files

Unified · Split

src/ft2_replayer.c+2−2
@@ -311,7 +311,7 @@ void setFrequencyTable(bool linearPeriodsFlag) · 310 unmodified lines
311 if (ui.configScreenShown && editor.currConfigScreen == CONFIG_SCREEN_IO_DEVICES)311 if (ui.configScreenShown && editor.currConfigScreen == CONFIG_SCREEN_IO_DEVICES)
312 {312 {
313 // update "frequency table" radiobutton, if it's shown313 // update "frequency table" radiobutton, if it's shown
314 setConfigIORadioButtonStates(); 314 setConfigIORadioButtonStates();
315 315
316 // update mid-C freq. in instr. editor (it can slightly differ between Amiga/linear)316 // update mid-C freq. in instr. editor (it can slightly differ between Amiga/linear)
317 if (ui.instEditorShown)317 if (ui.instEditorShown)
@@ -404,7 +404,7 @@ void calcReplayerLogTab(void) // for linear period -> hz calculation · 86 unmodified lines
404 dExp2MulTab[i] = 1.0 / exp2(i); // 1/(2^i)404 dExp2MulTab[i] = 1.0 / exp2(i); // 1/(2^i)
405 405
406 for (int32_t i = 0; i < 4*12*16; i++)406 for (int32_t i = 0; i < 4*12*16; i++)
407 dLogTab[i] = 8363.0 * exp2(i / 768.0) * 256.0;407 dLogTab[i] = (8363.0 * 256.0) * exp2(i / (4.0 * 12.0 * 16.0));
408}408}
409 409
410void calcReplayerVars(int32_t audioFreq)410void calcReplayerVars(int32_t audioFreq)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t