Skip to content

Commit

Permalink
🐛 Fix noise output
Browse files Browse the repository at this point in the history
  • Loading branch information
thara committed Aug 29, 2021
1 parent dd68042 commit e4336e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftNES/APU/APU.swift
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ extension NoiseChannel: Oscillator {
}

func output() -> UInt8 {
guard shiftRegister[0] == 0 || lengthCounter == 0 else {
if shiftRegister[0] == 0 || lengthCounter == 0 {
return 0
}
let volume = useConstantVolume ? envelopePeriod : envelopeDecayLevelCounter
Expand Down

0 comments on commit e4336e2

Please sign in to comment.