class Channel3
- Channel3
- SoundChannel
- Reference
- Object
Defined in:
cryboy/audio/channel3.crConstant Summary
-
RANGE =
65306..65310
-
WAVE_RAM_RANGE =
65328..65343
Instance Method Summary
-
#===(value) : Bool
Used so that channels can be matched with case..when statements
- #[](index : Int) : UInt8
- #[]=(index : Int, value : UInt8) : Nil
-
#frequency_timer : UInt32
Calculate the frequency timer
- #get_amplitude : Float32
- #schedule_reload(frequency_timer : UInt32) : Nil
-
#step_wave_generation : Nil
Called when @period reaches 0
Instance methods inherited from class SoundChannel
===(value)
===,
[](index : Int) : UInt8
[],
[]=(index : Int, value : UInt8) : Nil
[]=,
enabled : Bool
enabled,
enabled=(enabled : Bool)
enabled=,
frequency_timer : UInt32
frequency_timer,
get_amplitude : Float32
get_amplitude,
length_counter : Int32
length_counter,
length_counter=(length_counter : Int32)
length_counter=,
length_step : Nil
length_step,
schedule_reload(frequency_timer : UInt32) : Nil
schedule_reload,
step : Nil
step,
step_wave_generation : Nil
step_wave_generation
Constructor methods inherited from class SoundChannel
new(gb : Motherboard)
new
Instance Method Detail
def ===(value) : Bool
#
Description copied from class SoundChannel
Used so that channels can be matched with case..when statements
def frequency_timer : UInt32
#
Description copied from class SoundChannel
Calculate the frequency timer
def step_wave_generation : Nil
#
Description copied from class SoundChannel
Called when @period reaches 0