class

GB::SoundChannel

Inherits Reference < Object

Constructors

new(gb : GB)
Source

Instance methods

===(other)

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

Source
[](index : Int) : UInt8
Source
[]=(index : Int, 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