Fixes to filtering

This commit is contained in:
Ryzerth
2021-04-17 03:38:48 +02:00
parent 3bf4f0ce01
commit d1e553f05a
7 changed files with 45 additions and 39 deletions

View File

@@ -5,8 +5,8 @@
namespace dsp {
namespace math {
inline float sinc(float omega, float x, float norm) {
return (x == 0.0f) ? 1.0f : (sinf(omega*x)/(norm*x));
inline double sinc(double omega, double x, double norm) {
return (x == 0.0f) ? 1.0f : (sin(omega*x)/(norm*x));
}
}
}