Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DMC_TIMER_TABLE = [16]uint16{
0x1AC, 0x17C, 0x154, 0x140, 0x11E, 0x0FE, 0x0E2, 0x0D6,
0x0BE, 0x0A0, 0x08E, 0x080, 0x06A, 0x054, 0x048, 0x036,
}
Functions ¶
This section is empty.
Types ¶
type APU ¶
type APU struct {
// contains filtered or unexported fields
}
func New ¶
func New(audio AudioRenderer) *APU
func (*APU) Step ¶
func (a *APU) Step(dmcMemoryReader DMCMemoryReader) bool
type AudioBuffer ¶
type AudioBuffer struct {
// contains filtered or unexported fields
}
func NewAudioBuffer ¶
func NewAudioBuffer(cap int) AudioBuffer
func (*AudioBuffer) Write ¶
func (b *AudioBuffer) Write(v float32)
type AudioRenderer ¶
type AudioRenderer interface {
Write(float32)
}
type DMCMemoryReader ¶
Click to show internal directories.
Click to hide internal directories.