class GB::APU
- GB::APU
- Reference
- Object
Defined in:
crab/gb/apu.crConstant 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
-
#[](index : Int) : UInt8
read from apu memory
-
#[]=(index : Int, value : UInt8) : Nil
write to apu memory
- #first_half_of_length_period : Bool
- #get_sample : Nil
- #sync : Bool
- #tick_frame_sequencer : Nil
- #toggle_sync : Nil