Skip to content

Commit 189076f

Browse files
committed
Use approximated pole instead of exact
1 parent b004345 commit 189076f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Utility/dcblock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void DcBlock::Init(float sample_rate)
77
{
88
output_ = 0.0;
99
input_ = 0.0;
10-
gain_ = expf(-2.0f * M_PI * 10.f / sample_rate);
10+
gain_ = 1.0 - 10.f / sample_rate;
1111
}
1212

1313
float DcBlock::Process(float in)

0 commit comments

Comments
 (0)