Skip to content

Commit

Permalink
Couple sound tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Jan 1, 2025
1 parent 94fa786 commit d3787d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/6502.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions src/soundchip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d3787d5

Please sign in to comment.