From f5c3ee6e269a706ee0df28dd5d3b9b02d7782c72 Mon Sep 17 00:00:00 2001 From: Lunar Journal Date: Tue, 7 Jan 2025 17:26:43 +0200 Subject: Update emu8910.ts --- src/emu8910.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2