When I connect to a machine via remote desktop, the WaveOut playback fails with a MmException: WaveBadFormat calling waveOutOpen. The callstack is:
NAudio.dll!NAudio.MmException.Try(NAudio.MmResult result = WaveBadFormat, string function = "waveOutOpen") Line 40 C#
NAudio.dll!NAudio.Wave.WaveOut.Init(NAudio.Wave.WaveStream waveStream = {NAudio.Wave.WaveChannel32}) Line 100 + 0xe bytes C#
NAudioDemo.exe!NAudioDemo.AudioPlaybackForm.buttonPlay_Click(object sender = {Play}, System.EventArgs e = {System.EventArgs}) Line 84 + 0x18 bytes C#
The playback works fine when I'm directly logged in on that same machine.
When using remote desktop, sounds from other application are correctly sent over the network to the client machine. So it not a general problem with sounds in a remote session.
Does anybody know what is going on here and if there is a fix?
Comments: @daniel_s I've been trying to reproduce the NoDriver error as other people have reported it, but my tests so far have been successful. What OS are you remote desktoping from and to?
NAudio.dll!NAudio.MmException.Try(NAudio.MmResult result = WaveBadFormat, string function = "waveOutOpen") Line 40 C#
NAudio.dll!NAudio.Wave.WaveOut.Init(NAudio.Wave.WaveStream waveStream = {NAudio.Wave.WaveChannel32}) Line 100 + 0xe bytes C#
NAudioDemo.exe!NAudioDemo.AudioPlaybackForm.buttonPlay_Click(object sender = {Play}, System.EventArgs e = {System.EventArgs}) Line 84 + 0x18 bytes C#
The playback works fine when I'm directly logged in on that same machine.
When using remote desktop, sounds from other application are correctly sent over the network to the client machine. So it not a general problem with sounds in a remote session.
Does anybody know what is going on here and if there is a fix?
Comments: @daniel_s I've been trying to reproduce the NoDriver error as other people have reported it, but my tests so far have been successful. What OS are you remote desktoping from and to?