diff options
-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); } |