diff options
author | Lunar Journal <md.node.0@gmail.com> | 2025-01-07 17:26:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-07 17:26:43 +0200 |
commit | f5c3ee6e269a706ee0df28dd5d3b9b02d7782c72 (patch) | |
tree | c955e93d335f0eea15f4457a83db50aac05206df | |
parent | 2a42e3cba12682526d4cf6e703f34fa640958753 (diff) | |
download | emu8910-f5c3ee6e269a706ee0df28dd5d3b9b02d7782c72.tar.gz emu8910-f5c3ee6e269a706ee0df28dd5d3b9b02d7782c72.zip |
Update emu8910.ts
-rw-r--r-- | src/emu8910.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu8910.ts b/src/emu8910.ts index c5c2d24..73fcfd9 100644 --- a/src/emu8910.ts +++ b/src/emu8910.ts @@ -51,6 +51,7 @@ const YM_CLOCK_ZX = 1750000; +const CUBIC_INTERPOL = 0.5 const FIR_CUTOFF = 2000 // Hz const FIR_TAPS = 200 // N taps var FIR = [] // coeff @@ -794,8 +795,8 @@ class PSG49 { interpolate[1].step(output[1]); } - sample_left[i] = interpolate[0].cubic(0.5); - sample_right[i] = interpolate[1].cubic(0.5); + sample_left[i] = interpolate[0].cubic(CUBIC_INTERPOL); + sample_right[i] = interpolate[1].cubic(CUBIC_INTERPOL); } |