|
@@ -4559,8 +4559,8 @@ cmRC_t cmGoertzelExec( cmGoertzel* p, const cmSample_t* x, unsigned procSmpCnt,
|
4559
|
4559
|
{
|
4560
|
4560
|
cmGoertzelCh* ch = p->ch + i;
|
4561
|
4561
|
|
4562
|
|
- ch->s1 = x[0];
|
4563
|
|
- ch->s2 = x[1] + 2 * x[0] * ch->coeff;
|
|
4562
|
+ ch->s2 = x[0];
|
|
4563
|
+ ch->s1 = x[1] + 2 * x[0] * ch->coeff;
|
4564
|
4564
|
for(j=2; j<procSmpCnt; ++j)
|
4565
|
4565
|
{
|
4566
|
4566
|
ch->s0 = x[j] + ch->coeff * ch->s1 - ch->s2;
|
|
@@ -4573,3 +4573,5 @@ cmRC_t cmGoertzelExec( cmGoertzel* p, const cmSample_t* x, unsigned procSmpCnt,
|
4573
|
4573
|
|
4574
|
4574
|
return cmOkRC;
|
4575
|
4575
|
}
|
|
4576
|
+
|
|
4577
|
+
|