fn volume_output(&self) -> u8 {
    if self.enabled {
      self.waveform_output() * self.volume
    } else {
      0
    }
  }
// Return a value between 0-15
Return a value between 0-15
Return a value between 0 - 15
fn volume_output(&self) -> u8 {
    if self.enabled {
      self.waveform_output() * self.volume
    } else {
      0
    }
  }
fn volume_output ( & self ) -> u8 { if self . enabled { self . waveform_output ( ) * self . volume } else { 0 } }
Return a value between 0-15
Return a value between 0 - 15
&self
&self