This project has moved and is read-only. For the latest updates, please go here.

WaveOut a DeviceNumber

Feb 10, 2014 at 11:53 PM
Hi All,
Does anyone know what will happen if I give WaveOut a device number of a device that has frozen up (ie no longer communicating with windows). I can't test this myself because it's a remote user using a cheap USB soundcard that I suspect might be freezing up but can't be positive.

Does WaveOut default to DeviceNumber=0, the default windows playback device?

The code is basically like this. It's in a Try clause and does not throw an exception.

WaveOut outputDevice = new WaveOut()
outputDevice.DeviceNumber = 1; // 1 = the frozen sound card device

Using NAudio 1.6
BTW, is there a What's New in NAudio 1.7 readme anywhere?
Feb 27, 2014 at 10:35 PM
Yes, WaveOut defaults to device 0.
Read the NAudio 1.7 release notes
Feb 28, 2014 at 1:02 PM
Thanks Mark. Good to know. His problem is gone now since he swapped out the soundcard. Hardware issue apparently.

And thanks for the release notes link. Good stuff. I'm glad I upgraded.