예제 #1
0
 private void VolumeOff_Click(object sender, EventArgs e)
 {
     main.volumeOff = true;
     main.volumeNew = slVol.Value;
     slVol.Value    = 0;
     Bass1.SetVolumeToStream(Bass1.Stream, slVol.Value);
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 private void VolumeOn_Click(object sender, EventArgs e)
 {
     main.volumeOff = false;
     slVol.Value    = main.volumeNew;
     Bass1.SetVolumeToStream(Bass1.Stream, slVol.Value);
 }