Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APU ¶
type APU struct { Samples Samples Debug struct { ChannelEnabled [4]bool } // contains filtered or unexported fields }
APU represents the GameBoy's audio processing unit. It comprises 4 channels: 2 pulse channels, a wave channel and a noise channel. Each channel has is controlled by a set of addresses.
Channel 1 and 2 are both square channels. They can be used to play tones of different frequencies. Channel 3 is an arbitrary waveform channel that can be set in RAM. Channel 4 is a noise channel that can be used to play white noise.
func (*APU) AttachPlayback ¶
func (*APU) StepFrameSequencer ¶
func (a *APU) StepFrameSequencer()
Click to show internal directories.
Click to hide internal directories.