abstract class GB::SoundChannel
- GB::SoundChannel
- Reference
- Object
Direct Known Subclasses
Defined in:
crab/gb/apu/abstract_channels.crConstructors
Instance Method Summary
-
#===(other)
Used so that channels can be matched with case..when statements
- #[](index : Int) : UInt8
- #[]=(index : Int, value : UInt8) : Nil
- #enabled : Bool
- #enabled=(enabled : Bool)
-
#frequency_timer : UInt32
Calculate the frequency timer
- #get_amplitude : Float32
-
#length_counter : Int32
NRx1
-
#length_counter=(length_counter : Int32)
NRx1
-
#length_step : Nil
Step the length, disabling the channel if the length counter expires
- #schedule_reload(frequency_timer : UInt32) : Nil
-
#step : Nil
Step the channel, calling helpers to reload the period and step the wave generation
-
#step_wave_generation : Nil
Called when @period reaches 0
Constructor Detail
Instance Method Detail
def step : Nil
#
Step the channel, calling helpers to reload the period and step the wave generation