static void PlayPCSpeaker(BeeperType speaker, bool isContinious) { if (speaker == BeeperType.None) return; _frequency = (int) speaker; _isContinious = isContinious; if (_thread != null) _thread.Abort(); _thread = new Thread(PlayBeep); _thread.Start(); }
static void PlayPCSpeaker(BeeperType beeperType, bool isContinious) { if (beeperType != BeeperType.None) { _beepFrequency = (int)beeperType; _isContinious = isContinious; _isBeepThreadStopping = false; if (_beepThread == null) { _beepThread = new Thread(PlayBeep); _beepThread.Name = "PC Speaker"; _beepThread.Start(); } } }
public static void Play(string filePath, BeeperType speakertype, bool isContinious) { PlaySound(filePath, isContinious); PlayPCSpeaker(speakertype, isContinious); }
public void OnDeliverBlueBeepersButtonClick() { _deliveredBeepersType = BeeperType.Blue; Execute(); _executionController.Execute(); }