Skip to content

Commit 1f19837

Browse files
committed
Fix FIR scaling on reload
1 parent d681b24 commit 1f19837

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Bugfixes:
1212
- Fix websocket `exit` command.
1313
- Correct response of `setconfigname` websocket command.
1414
- Fix buffer underrun soon after starting Alsa playback.
15+
- Correct scaling of FIR coefficients when reloading config.
1516

1617

1718
## 0.3.1

src/fftconv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl Filter for FFTConv {
167167

168168
for (n, coeff) in coeffs.iter().enumerate() {
169169
coeffs_padded[n / self.npoints][n % self.npoints] =
170-
coeff / (2.0 * self.npoints as PrcFmt);
170+
coeff / (self.npoints as PrcFmt);
171171
}
172172

173173
for (segment, segment_f) in coeffs_padded.iter_mut().zip(coeffs_f.iter_mut()) {

0 commit comments

Comments
 (0)