pub fn tick(&mut self) {
		if self.frequency_count > 0 {
			self.frequency_count -= 1;
		} else if self.frequency_count == 0 {
			self.frequency_count = (2048 - self.frequency_load) * 4;
			self.sequence_pointer = (self.sequence_pointer + 1) % 8;

			if self.enabled && self.dac_enabled {
				self.output_volume = self.volume;
			} else {
				self.output_volume = 0;
			}
		}

		if WAVE_PATTERN[pattern_to_u8(self.wave_pattern) as usize][self.sequence_pointer as usize] == 0
		{
			self.output_volume = 0;
		}
	}
// Channel NR13/NR14 frequency tick
Channel NR13/NR14 frequency tick
Channel NR13 / NR14 frequency tick
pub fn tick(&mut self) {
		if self.frequency_count > 0 {
			self.frequency_count -= 1;
		} else if self.frequency_count == 0 {
			self.frequency_count = (2048 - self.frequency_load) * 4;
			self.sequence_pointer = (self.sequence_pointer + 1) % 8;
			if self.enabled && self.dac_enabled {
				self.output_volume = self.volume;
			} else {
				self.output_volume = 0;
			}
		}
		if WAVE_PATTERN[pattern_to_u8(self.wave_pattern) as usize][self.sequence_pointer as usize] == 0
		{
			self.output_volume = 0;
		}
	}
pub fn tick ( & mut self ) { if self . frequency_count > 0 { self . frequency_count -= 1 ; } else if self . frequency_count == 0 { self . frequency_count = ( 2048 - self . frequency_load ) * 4 ; self . sequence_pointer = ( self . sequence_pointer + 1 ) % 8 ; if self . enabled && self . dac_enabled { self . output_volume = self . volume ; } else { self . output_volume = 0 ; } } if WAVE_PATTERN [ pattern_to_u8 ( self . wave_pattern ) as usize ] [ self . sequence_pointer as usize ] == 0 { self . output_volume = 0 ; } }
Channel NR13/NR14 frequency tick
Channel NR13 / NR14 frequency tick
&mut self
&mut self