class

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 = 65536

Constructors

new(gb : Motherboard, headless : Bool, sync : 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=(sync : Bool)
Source
tick_frame_sequencer
Source