Skip to content

Commit

Permalink
Merge pull request #51 from TianZerL/master
Browse files Browse the repository at this point in the history
APU fix
  • Loading branch information
fogleman committed Feb 20, 2022
2 parents 0aace4b + 1a895f3 commit 088b5ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nes/apu.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,9 @@ func (t *Triangle) output() byte {
if !t.enabled {
return 0
}
if t.timerPeriod < 3 {
return 0;
}
if t.lengthValue == 0 {
return 0
}
Expand Down

0 comments on commit 088b5ce

Please sign in to comment.