From 21f87070afa31f30593e85a9ddd5fcb84c292ec8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 8 Jun 2013 21:25:18 +0200 Subject: COMMON: Fix regression in SineTable creation. This is a regression from f4ba8a6485b097a8ef1e2004d1af127243f379f1. The commit replaced the static cosine and sine tables with dynamically created ones. In the process of that a copy&paste error happened which made the sine table use the layout of the cosine table. This commit now changes the dynamically created sine tables to conform to the layout of the previous static tables. --- common/sinetables.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/sinetables.cpp b/common/sinetables.cpp index a6ec99469d..2198dbfd1a 100644 --- a/common/sinetables.cpp +++ b/common/sinetables.cpp @@ -36,13 +36,13 @@ SineTable::SineTable(int bitPrecision) { double freq = 2 * M_PI / m; _table = new float[m]; - // Table contains sin(2*pi*x/n) for 0<=x<=n/4, - // followed by its reverse - for (int i = 0; i <= m / 4; i++) + // Table contains sin(2*pi*i/m) for 0<=i