Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: 5.1 playback with Naudio?

$
0
0
Hi guys,
is it possible to play 5.1 audio files with Naudio?
I'm getting an exception at
outputDevice.Init(mixer); 
step if trying to set channelCount = 6 creating WasapiOut or WaveOut instance.

System.ArgumentException was unhandled
HResult=-2147024809
Message=Value does not fall within the expected range.
Source=mscorlib
StackTrace:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at NAudio.Wave.WasapiOut.Init(IWaveProvider waveProvider)
at NAudio.Wave.WaveExtensionMethods.Init(IWavePlayer wavePlayer, ISampleProvider sampleProvider, Boolean convertTo16Bit)....

Kind regards,
Andrei

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>