class GBA::APU
- GBA::APU
- Reference
- Object
Defined in:
crab/gba/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
- #[](io_addr : UInt32) : UInt8
- #[]=(io_addr : UInt32, value : UInt8) : Nil
- #first_half_of_length_period : Bool
- #get_sample : Nil
- #soundcnt_h : GBA::Reg::SOUNDCNT_H
- #sync : Bool
- #tick_frame_sequencer : Nil
- #timer_overflow(timer : Int) : Nil
- #toggle_sync : Nil