//установка громкости через слайдер
 private void slVol_Scroll(object sender, ScrollEventArgs e)
 {
     BassLike.SetVolumeToStream(BassLike.Stream, slVol.Value);
     if (slVol.Value == 0)
     {
         VolumePic.Image = new Bitmap(Properties.Resources.icons8_выключить_звук_100);
     }
     if (slVol.Value > 0)
     {
         VolumePic.Image = new Bitmap(Properties.Resources.icons8_средняя_громкость_100);
     }
 }
Пример #2
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     if (Vars.vol)
     {
         Vars.vol        = false;
         Vars.VolBuf     = BassLike.Volume;
         BassLike.Volume = 0;
         slVol.Value     = BassLike.Volume;
         BassLike.SetVolumeToStream(BassLike.Stream, slVol.Value);
         pictureBox1.Image = Properties.Resources._1498657581_NoVol1;
     }
     else
     {
         Vars.vol        = true;
         BassLike.Volume = Vars.VolBuf;
         slVol.Value     = BassLike.Volume;
         BassLike.SetVolumeToStream(BassLike.Stream, slVol.Value);
         pictureBox1.Image = Properties.Resources._1498657581_VolumeNormalBlue;
     }
 }
Пример #3
0
 private void slVol_Scroll(object sender, ScrollEventArgs e)
 {
     BassLike.SetVolumeToStream(BassLike.Stream, slVol.Value);
     Vars.vol          = true;
     pictureBox1.Image = Properties.Resources._1498657581_VolumeNormalBlue;
 }