class GBA::APU

Defined in:

crab/gba/apu.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(gba : GBA) #

[View source]

Instance Method Detail

def [](io_addr : UInt32) : UInt8 #

[View source]
def []=(io_addr : UInt32, value : UInt8) : Nil #

[View source]
def first_half_of_length_period : Bool #

[View source]
def get_sample : Nil #

[View source]
def soundcnt_h : GBA::Reg::SOUNDCNT_H #

[View source]
def sync : Bool #

[View source]
def tick_frame_sequencer : Nil #

[View source]
def timer_overflow(timer : Int) : Nil #

[View source]
def toggle_sync : Nil #

[View source]