Exemple #1
0
        private void GetAudioDevices()
        {
            Dictionary <string, string> audioDevices = new Dictionary <string, string>();

            audioDevices = Audio_Devices.GetAudioDevices();
            List_AllDevices.ItemsSource = audioDevices;
            GetDefaultDevices();
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 public MainPage()
 {
     this.InitializeComponent();
     Audio_Devices.FindAudioDevices();
 }