| ... | ... |
@@ -65,7 +65,7 @@ public: |
| 65 | 65 |
{
|
| 66 | 66 |
double dx = static_cast<double>(SINC_WIDTH) / SINC_SAMPLES, x = 0.0; |
| 67 | 67 |
for (unsigned i = 0; i <= SINC_SAMPLES; ++i, x += dx) |
| 68 |
- this->sinc_lut[i] = std::abs(x) < SINC_WIDTH ? sinc(x) * (0.5 * (1.0 + std::cos((M_PI * x) / SINC_WIDTH))) : 0.0; |
|
| 68 |
+ this->sinc_lut[i] = std::abs(x) < SINC_WIDTH ? sinc(x) * sinc(x / SINC_WIDTH) : 0.0; |
|
| 69 | 69 |
this->initializedLUTs = true; |
| 70 | 70 |
} |
| 71 | 71 |
this->clear(); |