Skip to content

Commit

Permalink
fix(apu): Initialize APU with a 4-step frame counter
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 3, 2024
1 parent 6bd07fd commit e6c7ab3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/apu/apu.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ func New(conf *config.Config) *APU {

Square: [2]Square{{Channel1: true}, {}},
Noise: Noise{ShiftRegister: 1},

FramePeriod: 4,
}
a.buf.Grow(BufferCap)
return a
Expand Down

0 comments on commit e6c7ab3

Please sign in to comment.