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

Method output

nes/apu.go:124–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124func (apu *APU) output() float32 {
125 p1 := apu.pulse1.output()
126 p2 := apu.pulse2.output()
127 t := apu.triangle.output()
128 n := apu.noise.output()
129 d := apu.dmc.output()
130 pulseOut := pulseTable[p1+p2]
131 tndOut := tndTable[3*t+2*n+d]
132 return pulseOut + tndOut
133}
134
135// mode 0: mode 1: function
136// --------- ----------- -----------------------------

Callers 1

sendSampleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected