From d3787d55e6d5b6c0fdc6ad316288a5c7bdeeb889 Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Wed, 1 Jan 2025 21:41:52 +0000 Subject: [PATCH] Couple sound tweaks --- src/6502.js | 2 +- src/soundchip.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/6502.js b/src/6502.js index a7b50c9..daef991 100644 --- a/src/6502.js +++ b/src/6502.js @@ -1183,7 +1183,7 @@ export class Cpu6502 extends Base6502 { this.halted = false; this.music5000PageSel = 0; this.video.reset(this, this.sysvia, hard); - if (hard) this.soundChip.reset(hard); + this.soundChip.reset(hard); if (this.teletextAdaptor) this.teletextAdaptor.reset(hard); if (this.music5000) this.music5000.reset(hard); if (hard && this.econet) { diff --git a/src/soundchip.js b/src/soundchip.js index 891a8e5..b4c54d5 100644 --- a/src/soundchip.js +++ b/src/soundchip.js @@ -272,8 +272,7 @@ export class SoundChip { this.volume[i] = volumeTable[8]; } this.noisePoked(); - this.advance(100000); - this.setScheduler(this.scheduler); + this.lastRunEpoch = this.scheduler.epoch; } enable(e) {