private void btn_change_audio_device_Click(object sender, EventArgs e) { var test = new CoreAudioController().GetDevices(); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[6]); Thread.Sleep(1000); new CoreAudioController().SetDefaultDevice(test.ToArray()[2]); Thread.Sleep(1000); foreach (var tets in test) { tBx.Text = tets.ToString() + "\n"; } }