Esempio n. 1
0
 public void Pause()
 {
     if (_play)
     {
         _play = false;
         for (int i = 0; i < (Properties.Settings.Default.VolumeMax - Properties.Settings.Default.VolumeMin) / 2; i++)
         {
             VolumeChanger.VolumeDown();
         }
     }
 }
Esempio n. 2
0
 public void Play()
 {
     if (!_play)
     {
         _play = true;
         for (int i = 0; i < (Properties.Settings.Default.VolumeMax - Properties.Settings.Default.VolumeMin) / 2; i++)
         {
             VolumeChanger.VolumeUp();
         }
     }
 }
Esempio n. 3
0
        public SoundSync()
        {
            Thread thread = new Thread(StartLibZPlay);

            thread.Start();
            Pause();


            for (int i = 0; i < 50; i++)
            {
                VolumeChanger.VolumeDown();
            }
            for (int i = 0; i < Properties.Settings.Default.VolumeMin / 2; i++)
            {
                VolumeChanger.VolumeUp();
            }
        }