Ejemplo n.º 1
0
        // Обновить список устройств
        private void UpdateAudioSources()
        {
            _devices = NAudioCapture.GetDevices();

            foreach (var device in _devices)
            {
                cboxLeftDevice.Items.Add(device.FriendlyName);
                cboxRightDevice.Items.Add(device.FriendlyName);
            }
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            sgraphWave.AddChannel("Left", Color.Red);
            sgraphWave.AddChannel("Right", Color.Green);
            sgraphSpectrum.AddChannel("Left", Color.Red);
            sgraphSpectrum.AddChannel("Right", Color.Green);
            sGraphShift.AddChannel("Сдвиг", Color.Red);



            _capture = new NAudioCapture(2048);
            _capture.AudioCaptured += _capture_AudioCaptured;

            UpdateAudioSources();
            SetDefaultSources();
        }