Sign in to follow this  
devronious

[SlimDX] Enumerating sound devices...

Recommended Posts

Anybody know how to enumerate sound devices? When I try the following I get the error: ArgumentException was unhandled: Object contains non-primitive or non-blittable data. I get the error here: DeviceCollection dc = DirectSound.GetDevices();
            this.comboBox1.Items.Clear();
            DeviceCollection dc = DirectSound.GetDevices();
            foreach (DeviceInformation di in dc)
            {
                this.comboBox1.Items.Add(di.Description);
            }
            this.comboBox1.SelectedIndex = Properties.Settings.Default.SoundDevice;


Thanks, Devin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this