diff options
author | Lunar Journal <md.node.0@gmail.com> | 2025-01-11 09:20:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-11 09:20:34 +0200 |
commit | d4e89bf2a6f6b5164384600244172477570ba140 (patch) | |
tree | 792b845d35670d18327884ccaf4077c53a7b1718 /emu8910.js | |
parent | ca5dfbc0383c180b05b7cd95c7920b73a93b4809 (diff) | |
download | emu8910-d4e89bf2a6f6b5164384600244172477570ba140.tar.gz emu8910-d4e89bf2a6f6b5164384600244172477570ba140.zip |
Update emu8910.js
Diffstat (limited to 'emu8910.js')
-rw-r--r-- | emu8910.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -55,6 +55,7 @@ const DAC_SHIFT = 40; const CUBIC_INTERPOL = 0.5; const FIR_CUTOFF = 2100; // Hz const FIR_TAPS = 50; // N taps +const WAVE_OVERSAMPLE = 8; var FIR = []; // coeff class Interpolator { constructor() { @@ -241,7 +242,7 @@ class PSG49 { new Interpolator(), new Interpolator() ]; - let m = 8; + let m = WAVE_OVERSAMPLE; FIR = this.gen_fir(FIR_TAPS, FIR_CUTOFF, this.driver.device.sampleRate); this.fir = [ new FirFilter(FIR, m), |