summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLunar Journal <md.node.0@gmail.com>2024-01-29 17:44:36 +0200
committerGitHub <noreply@github.com>2024-01-29 17:44:36 +0200
commitbc40409182f32446c5694eb7f3ecf8be84a803fb (patch)
tree6532942c8e45f3d329d5f0f499ce8a06e139175c /src
parent6ce24a9deb66b5e01e1a4a6f69bd41cc0cbd8f03 (diff)
downloademu8910-bc40409182f32446c5694eb7f3ecf8be84a803fb.tar.gz
emu8910-bc40409182f32446c5694eb7f3ecf8be84a803fb.zip
emu8910: core: fir: update filtering
Diffstat (limited to 'src')
-rw-r--r--src/emu8910.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu8910.ts b/src/emu8910.ts
index 892df35..fc39745 100644
--- a/src/emu8910.ts
+++ b/src/emu8910.ts
@@ -214,7 +214,7 @@ class FirFilter {
buffer[this.offset + i] = samples[i];
}
for( i = 0; i < h.length; i++){
- y += h[i] * sub[i];
+ y += h[i] * (sub[i] + sub[h.length - i - 1]);
}
for( i = 0; i < m; i++){
buffer[this.offset + length - m + i] = buffer[this.offset + i];