class

GBA::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(gba : GBA)
Source

Instance methods

[](io_addr : UInt32) : UInt8
Source
[]=(io_addr : UInt32, value : UInt8) : Nil
Source
first_half_of_length_period
Source
get_sample
Source
soundcnt_h
Source
sync
Source
tick_frame_sequencer
Source
timer_overflow(timer : Int) : Nil
Source
toggle_sync
Source