Skip to content

Commit 692302c

Browse files
committed
Filter performance optimizations
1 parent ea85680 commit 692302c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AudioTools/Filter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class FIR : public Filter<T> {
6666
i_b = 0;
6767

6868
if (!(std::is_same<T, float>::value || std::is_same<T, double>::value)) {
69-
b_terms = b_terms / factor);
69+
b_terms = b_terms / factor;
7070
}
7171

7272
return b_terms;
@@ -133,10 +133,10 @@ class IIR : public Filter<T> {
133133
i_b++;
134134
if (i_b == lenB) i_b = 0;
135135
i_a++;
136-
if (i_a == lenA) i_a = 0
136+
if (i_a == lenA) i_a = 0;
137137

138138
if (!(std::is_same<T, float>::value || std::is_same<T, double>::value)) {
139-
filtered = filtered / factor);
139+
filtered = filtered / factor;
140140
}
141141
return filtered;
142142
}

0 commit comments

Comments
 (0)