class

GB::APU

Inherits Reference < Object

Constants

BUFFER_SIZE = 1024
CHANNELS = 2
FRAME_SEQUENCER_PERIOD = CPU::CLOCK_SPEED // FRAME_SEQUENCER_RATE
FRAME_SEQUENCER_RATE = 512
SAMPLE_PERIOD = CPU::CLOCK_SPEED // SAMPLE_RATE
SAMPLE_RATE = 32768

Constructors

new(gb : GB, headless : Bool)
Source

Instance methods

[](index : Int) : UInt8

read from apu memory

Source
[]=(index : Int, value : UInt8) : Nil

write to apu memory

Source
first_half_of_length_period
Source
get_sample
Source
sync
Source
tick_frame_sequencer
Source
toggle_sync
Source