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

New Post: Four channel audio INPUT

$
0
0

thanks mark. what i have tried is this:

(if channels are 2 it works but not with 4)

int channels = 4;

WaveIn waveInStream = new WaveIn();

waveInStream.DeviceNumber = 0;       //this is my device - WaveIn.GetCapabilities(0).Channels == 2  

waveInStream.WaveFormat = new WaveFormat(waveInStream.WaveFormat.SampleRate, channels); //works only when channel is 2

waveInStream.DataAvailable += new EventHandler<WaveInEventArgs>(waveInStream_DataAvailable);

waveInStream.StartRecording();

Viewing all articles
Browse latest Browse all 5831

Trending Articles



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