FSClient.Broker.reload_audio_devices C# (CSharp) Method

reload_audio_devices() public method

public reload_audio_devices ( bool and_settings, bool no_save ) : void
and_settings bool
no_save bool
return void
		public void reload_audio_devices(bool and_settings, bool no_save) {
			if (active_calls > 0) {
				MessageBox.Show("Unable to reload audio devices while calls are active");
				return;
			}
			if (and_settings && !no_save)
				SaveAudioSettings();
			audio_devices = PortAudio.get_devices(true);
			if (and_settings)
				LoadAudioSettings();
			activateCurrentDevs();
		}
		public void DialTone() {

Usage Example

Example #1
0
 private void btnReloadDevices_Click(object sender, RoutedEventArgs e)
 {
     broker.reload_audio_devices(false, false);
     load_devices(false);
 }