class

GBA::DMAChannels

Inherits Reference < Object

Constants

RANGE = 160..167

Constructors

new(gba : GBA, control : Reg::SOUNDCNT_H)
Source

Instance methods

===(other) : Bool

Case equality.

The === method is used in a case ... when ... end expression.

For example, this code:

case value
when x
  # something when x
when y
  # something when y
end

Is equivalent to this code:

if x === value
  # something when x
elsif y === value
  # something when y
end

Object simply implements === by invoking ==, but subclasses (notably Regex) can override it to provide meaningful case-equality semantics.

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

Outputs a value -0x100...0x100

Source
timer_overflow(timer : Int) : Nil
Source