class

GBA::SoundChannel

Inherits Reference < Object

Constructors

new(gba : GBA)
Source

Instance methods

===(other)

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

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

Calculate the frequency timer

Source
get_amplitude
Source
length_counter

NRx1

Source
length_counter=(length_counter : Int32)

NRx1

Source
length_step

Step the length, disabling the channel if the length counter expires

Source
schedule_reload(frequency_timer : UInt32) : Nil
Source
step

Step the channel, calling helpers to reload the period and step the wave generation

Source
step_wave_generation

Called when @period reaches 0

Source