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

New Post: How to get Preferred Format List for any audio capture device?

$
0
0

Hello everyone,

I am not able to find the preferred/default audio format for the selected audio capture device. Actually I am using IWaveIn.WaveFormat property to get the audio format but I am not sure if its a default format. How NAudio retrieves this WaveFormat? (I am facing problem if I try to use this format for recording, audio codec is not supporting this format!).

I was comparing the default format retrieved using NAudio and DirectShow and I found that both are different! DirectShow provides a way to get the preferred format list for the audio capture device (using IPin::EnumMediaTypes), is there any way in NAudio to get the same list?


Viewing all articles
Browse latest Browse all 5831

Trending Articles



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