private void VolumeOff_Click(object sender, EventArgs e) { main.volumeOff = true; main.volumeNew = slVol.Value; slVol.Value = 0; Bass1.SetVolumeToStream(Bass1.Stream, slVol.Value); }
private void slVol_Scroll(object sender, ScrollEventArgs e) { if (main.volumeOff == true) { slVol.Value = 0; Bass1.SetVolumeToStream(Bass1.Stream, slVol.Value); } else { Bass1.SetVolumeToStream(Bass1.Stream, slVol.Value); } }
private void VolumeOn_Click(object sender, EventArgs e) { main.volumeOff = false; slVol.Value = main.volumeNew; Bass1.SetVolumeToStream(Bass1.Stream, slVol.Value); }