Skip to content

Commit

Permalink
Fix HPF and LPF
Browse files Browse the repository at this point in the history
  • Loading branch information
zzz11032511 committed Jan 31, 2022
1 parent 5f886d6 commit d60b42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sound/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ float filtering(float data, Playdata *info, uint64_t t) {
);
break;
case LPF:
data = hpf(data, info, t,
data = lpf(data, info, t,
filter->args[0]->value.f,
M_SQRT1_2
);
break;
case HPF:
data = lpf(data, info, t,
data = hpf(data, info, t,
filter->args[0]->value.f,
M_SQRT1_2
);
Expand Down

0 comments on commit d60b42f

Please sign in to comment.