fixing a few implicit promotions to double

any expression with at least on "double" is evaluated as double, which is slow.
This commit is contained in:
Frank
2023-09-09 20:48:17 +02:00
parent e40f266042
commit da0cf01eee
5 changed files with 9 additions and 9 deletions

View File

@@ -520,7 +520,7 @@ um_data_t* simulateSound(uint8_t simulationId)
maxVol = 31; // this gets feedback fro UI
binNum = 8; // this gets feedback fro UI
volumeRaw = volumeSmth;
my_magnitude = 10000.0 / 8.0f; //no idea if 10000 is a good value for FFT_Magnitude ???
my_magnitude = 10000.0f / 8.0f; //no idea if 10000 is a good value for FFT_Magnitude ???
if (volumeSmth < 1 ) my_magnitude = 0.001f; // noise gate closed - mute
return um_data;