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

Struct Pulse

nes/apu.go:324–346  ·  view source on GitHub ↗

Pulse

Source from the content-addressed store, hash-verified

322// Pulse
323
324type Pulse struct {
325 enabled bool
326 channel byte
327 lengthEnabled bool
328 lengthValue byte
329 timerPeriod uint16
330 timerValue uint16
331 dutyMode byte
332 dutyValue byte
333 sweepReload bool
334 sweepEnabled bool
335 sweepNegate bool
336 sweepShift byte
337 sweepPeriod byte
338 sweepValue byte
339 envelopeEnabled bool
340 envelopeLoop bool
341 envelopeStart bool
342 envelopePeriod byte
343 envelopeValue byte
344 envelopeVolume byte
345 constantVolume byte
346}
347
348func (p *Pulse) Save(encoder *gob.Encoder) error {
349 encoder.Encode(p.enabled)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected