fn initialize(&mut self) {
    self.enabled = true;
    if self.length_counter == 0 {
      self.length_counter = 63;
    }
    self.frequency_count =
      DIVISORS[self.dividing_ratio as usize] << self.shift_clock_frequency as u16;
    self.envelope_running = true;
    self.envelope_period_counter = self.envelope.period;
    self.volume = self.envelope.initial_volume;
    self.lfsr = 0x7FFF;
  }
// Initializes channel by resetting all values
Initializes channel by resetting all values
Initializes channel by resetting all values
fn initialize(&mut self) {
    self.enabled = true;
    if self.length_counter == 0 {
      self.length_counter = 63;
    }
    self.frequency_count =
      DIVISORS[self.dividing_ratio as usize] << self.shift_clock_frequency as u16;
    self.envelope_running = true;
    self.envelope_period_counter = self.envelope.period;
    self.volume = self.envelope.initial_volume;
    self.lfsr = 0x7FFF;
  }
fn initialize ( & mut self ) { self . enabled = true ; if self . length_counter == 0 { self . length_counter = 63 ; } self . frequency_count = DIVISORS [ self . dividing_ratio as usize ] << self . shift_clock_frequency as u16 ; self . envelope_running = true ; self . envelope_period_counter = self . envelope . period ; self . volume = self . envelope . initial_volume ; self . lfsr = 0x7FFF ; }
Initializes channel by resetting all values
Initializes channel by resetting all values
&mut self
&mut self