using System;
using System.Linq;
using System.Windows.Forms;
using NAudio.Wave;

namespace WolvenKit.Wwise.Player
{
    public partial class DirectSoundOutSettingsPanel : UserControl
    {
        public DirectSoundOutSettingsPanel()
        {
            InitializeComponent();
            InitialiseDirectSoundControls();
        }

        private void InitialiseDirectSoundControls()
        {
            comboBoxDirectSound.DisplayMember = "Description";
            comboBoxDirectSound.ValueMember = "Guid";
            comboBoxDirectSound.DataSource = DirectSoundOut.Devices;
        }

        public Guid SelectedDevice 
        {
            get { return (Guid)comboBoxDirectSound.SelectedValue; }
        }
    }
}
