MCPcopy Create free account
hub / github.com/fogleman/nes / stepCounter

Method stepCounter

nes/apu.go:584–593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

582}
583
584func (t *Triangle) stepCounter() {
585 if t.counterReload {
586 t.counterValue = t.counterPeriod
587 } else if t.counterValue > 0 {
588 t.counterValue--
589 }
590 if t.lengthEnabled {
591 t.counterReload = false
592 }
593}
594
595func (t *Triangle) output() byte {
596 if !t.enabled {

Callers 1

stepEnvelopeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected