mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-13 12:35:41 +02:00
More DSP cleanup + Remove FastFFT option because it should never be used
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
#include "constants.h"
|
||||
|
||||
namespace dsp::math {
|
||||
inline double freqToOmega(double freq, double samplerate) {
|
||||
inline double hzToRads(double freq, double samplerate) {
|
||||
return 2.0 * DB_M_PI * (freq / samplerate);
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
|
||||
namespace dsp::math {
|
||||
template<class T>
|
||||
T normPhaseDiff(T diff) {
|
||||
T normalizePhase(T diff) {
|
||||
if (diff > FL_M_PI) { diff -= 2.0f * FL_M_PI; }
|
||||
else if (diff <= -FL_M_PI) { diff += 2.0f * FL_M_PI; }
|
||||
return diff;
|
Reference in New Issue
Block a user