diff options
author | Lunar Journal <md.node.0@gmail.com> | 2025-01-07 17:27:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-07 17:27:43 +0200 |
commit | 13db5e923112b6c639dbbb011e8f30b1b9e94ee0 (patch) | |
tree | 6ffb0ad26885c096052bea4d1b29a28c971a21cf /emu8910.js | |
parent | f5c3ee6e269a706ee0df28dd5d3b9b02d7782c72 (diff) | |
download | emu8910-13db5e923112b6c639dbbb011e8f30b1b9e94ee0.tar.gz emu8910-13db5e923112b6c639dbbb011e8f30b1b9e94ee0.zip |
Update emu8910.js
Diffstat (limited to 'emu8910.js')
-rw-r--r-- | emu8910.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -50,6 +50,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ const YM_CLOCK_ZX = 1750000; +const CUBIC_INTERPOL = 0.5; const FIR_CUTOFF = 2000; // Hz const FIR_TAPS = 200; // N taps var FIR = []; // coeff @@ -587,8 +588,8 @@ class PSG49 { interpolate[0].step(output[0]); 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); } output[0] = fir[0].step(sample_left); output[1] = fir[1].step(sample_right); |