MCPcopy
hub / github.com/fogleman/nes / stepTimer

Method stepTimer

nes/apu.go:170–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170func (apu *APU) stepTimer() {
171 if apu.cycle%2 == 0 {
172 apu.pulse1.stepTimer()
173 apu.pulse2.stepTimer()
174 apu.noise.stepTimer()
175 apu.dmc.stepTimer()
176 }
177 apu.triangle.stepTimer()
178}
179
180func (apu *APU) stepEnvelope() {
181 apu.pulse1.stepEnvelope()

Callers 1

StepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected