From 860f7c55e96ffc91eb707d30d54c355caaac424b Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Thu, 17 Jun 2021 15:50:14 +0200 Subject: [PATCH] Fixex. --- MicroDexed.ino | 2 +- config.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index 3caa5c3..b5c2c0e 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -1529,7 +1529,7 @@ void initial_values_from_eeprom(bool init) } #ifdef DEBUG - Serial.println(F("Loading inital system data from EEPROM.")); + Serial.println(F("Loading initial system data from EEPROM.")); #endif eeprom_get_performance(); diff --git a/config.h b/config.h index cca430a..2bbc07d 100644 --- a/config.h +++ b/config.h @@ -345,8 +345,8 @@ #define USE_TEENSY_DSP 1 // HELPER MACROS -#define TIME_MS2SAMPLES(x) floor(uint32_t(x) * AUDIO_SAMPLE_RATE / 1000) -#define SAMPLES2TIME_MS(x) float(uint32_t(x) * 1000 / AUDIO_SAMPLE_RATE) +#define TIME_MS2SAMPLES(x) floor(uint32_t(x) * AUDIO_SAMPLE_RATE / 1000) * sizeof(int16_t) +#define SAMPLES2TIME_MS(x) float(uint32_t(x) * 1000 / AUDIO_SAMPLE_RATE * sizeof(int16_t) // Modulated delay options #define MOD_NO_FILTER_OUTPUT 0 #define MOD_BUTTERWORTH_FILTER_OUTPUT 1