Pulse
| 322 | // Pulse |
| 323 | |
| 324 | type 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 | |
| 348 | func (p *Pulse) Save(encoder *gob.Encoder) error { |
| 349 | encoder.Encode(p.enabled) |
nothing calls this directly
no outgoing calls
no test coverage detected