When calling WaveOutEvent.Init() with a device that points to a speaker that has Speaker Fill or Channel Phantoming(Options in Microsoft's basic sound driver) and a sample rate that is exactly equal to the device's sample rate the Init function throws this error:
NAudio.MmException
"UnspecifiedError calling waveOutOpen"
The following crashes when my speakers are set to 16 or 24 bit 44100 quality with either Channel Phantoming or Speaker Fill enabled:
```
//waveProvideris an instance of a class that inherits WaveProvider32
waveProvider.SetWaveFormat(44100, 2);
NAudio.Wave.WaveOutEvent waveOut = new WaveOutEvent();
waveOut.Init(waveProvider);
waveOut.Play();
```
But changing just the first line to Instance.SetWaveFormat(44099, 2); or Instance.SetWaveFormat(44101, 2); and it runs fine. Or ensuring Channel Phantoming and Speaker Fill are disabled and leaving it with sample rate 44100 will also make it run fine.
The same is true if my speakers are set to 48000 sample rate and have the first line as Instance.SetWaveFormat(48000, 2);
NAudio.MmException
"UnspecifiedError calling waveOutOpen"
The following crashes when my speakers are set to 16 or 24 bit 44100 quality with either Channel Phantoming or Speaker Fill enabled:
```
//waveProvideris an instance of a class that inherits WaveProvider32
waveProvider.SetWaveFormat(44100, 2);
NAudio.Wave.WaveOutEvent waveOut = new WaveOutEvent();
waveOut.Init(waveProvider);
waveOut.Play();
```
But changing just the first line to Instance.SetWaveFormat(44099, 2); or Instance.SetWaveFormat(44101, 2); and it runs fine. Or ensuring Channel Phantoming and Speaker Fill are disabled and leaving it with sample rate 44100 will also make it run fine.
The same is true if my speakers are set to 48000 sample rate and have the first line as Instance.SetWaveFormat(48000, 2);