private void GetAudioDevices() { Dictionary <string, string> audioDevices = new Dictionary <string, string>(); audioDevices = Audio_Devices.GetAudioDevices(); List_AllDevices.ItemsSource = audioDevices; GetDefaultDevices(); }
private void GetDefaultDevices() { Dictionary <string, string> defaultDevice = new Dictionary <string, string>(); defaultDevice = Audio_Devices.GetDefaultDevice(); string defaultName = ""; defaultDevice.TryGetValue("Name", out defaultName); Text_DefaultDevice.Text = defaultName; string defaultCodec = ""; defaultDevice.TryGetValue("Codec", out defaultCodec); Text_DefaultCodecAudio.Text = defaultCodec; }
public MainPage() { this.InitializeComponent(); Audio_Devices.FindAudioDevices(); }