Browse code

[NCSF] Very minor cleanups.

Naram Qashat authored on 2014/10/24 19:58:46
Showing 2 changed files
... ...
@@ -64,7 +64,7 @@ Channel::Channel() : chnId(-1), tempReg(), state(CS_NONE), trackId(-1), prio(0),
64 64
 		double dx = static_cast<double>(SINC_WIDTH) / SINC_SAMPLES, x = 0.0;
65 65
 		for (unsigned i = 0; i <= SINC_SAMPLES; ++i, x += dx)
66 66
 		{
67
-			float y = x / SINC_WIDTH;
67
+			double y = x / SINC_WIDTH;
68 68
 			this->sinc_lut[i] = std::abs(x) < SINC_WIDTH ? sinc(x) * (0.40897 + 0.5 * std::cos(M_PI * y) + 0.09103 * std::cos(2 * M_PI * y)) : 0.0;
69 69
 		}
70 70
 		this->initializedLUTs = true;
... ...
@@ -210,7 +210,7 @@ struct Channel
210 210
 	NDSSoundRegister reg;
211 211
 
212 212
 	/*
213
-	 * Lookup tables for the cosine and Lanczos Sinc interpolations, to
213
+	 * Lookup tables for the Sinc interpolation, to
214 214
 	 * avoid the need to call the sin/cos functions all the time.
215 215
 	 * These are static as they will not change between channels or runs
216 216
 	 * of the program.