commit a3de9a6340d08af528695dc678fad6ad5cd73cb4
parent a27852654d9784d36f24478dff46df1e74cb5065
Author: Olav Sørensen <olav.sorensen@live.no>
Date: Tue, 19 Jan 2021 12:51:47 +0100
Just some minor changes
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ft2_events.c b/src/ft2_events.c
@@ -424,7 +424,7 @@ static void handleInput(void)
if (editor.busy)
{
const uint32_t eventType = event.type;
- const SDL_Keycode key = event.key.keysym.scancode;
+ const SDL_Scancode key = event.key.keysym.scancode;
/* The Echo tool in Smp. Ed. can take forever if abused, let
** mouse buttons/ESC/SIGTERM force-stop it.
diff --git a/src/ft2_replayer.c b/src/ft2_replayer.c
@@ -127,7 +127,7 @@ void tuneSample(sampleTyp *s, const int32_t midCFreq) // used on external sample
{
#define NOTE_C4 (4*12)
#define MIN_PERIOD (0)
- #define MAX_PERIOD (((10*12*16)-1)-1) /* -1 (because of bugged amigaPeriods table values */
+ #define MAX_PERIOD (((10*12*16)-1)-1) /* -1 (because of bugged amigaPeriods table values) */
if (midCFreq <= 0 || note2Period == NULL)
{
@@ -499,7 +499,7 @@ int32_t getPianoKey(uint16_t period, int8_t finetune, int8_t relativeNote) // fo
finetune = ((int8_t)finetune >> 3) + 16;
- // this is not 100% accurate for all periods, but should be much faster than using log2()
+ // this is not 100% accurate for all periods, but should be faster than using log2() and floating-point arithmetics
int32_t hiPeriod = (10*12*16)+16;
int32_t loPeriod = 0;