class

GBA::Channel2

Inherits GBA::VolumeEnvelopeChannel < GBA::SoundChannel < Reference < Object

Constants

RANGE = 104..111
WAVE_DUTY = Slice[[-8, -8, -8, -8, -8, -8, -8, +8], [+8, -8, -8, -8, -8, -8, -8, +8], [+8, -8, -8, -8, -8, +8, +8, +8], [-8, +8, +8, +8, +8, +8, +8, -8]]

Instance methods

===(other) : Bool

Used so that channels can be matched with case..when statements

Source
[](address : UInt32) : UInt8
Source
[]=(address : UInt32, value : UInt8) : Nil
Source
frequency_timer

Calculate the frequency timer

Source
get_amplitude

Outputs a value -0x80..0x80

Source
schedule_reload(frequency_timer : UInt32) : Nil
Source
step_wave_generation

Called when @period reaches 0

Source