示例#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();
         }
     }
 }
示例#2
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();
            }
        }