Audio capture to WMA file
Products: Video Capture SDK .Net
WMA is a proprietary audio format known for compressing files at high-quality levels. Primarily used in Windows Media Player, it's ideal for music and online streaming with support for DRM-protected content.
Sample code
Set sample WMA settings and apply them as output format.
var wmaOutput = new WMAOutput();
wmaOutput.Internal_Profile_Name = "Windows Media Audio 9 High (192K)";
wmaOutput.Mode = WMVMode.InternalProfile;
VideoCapture1.Output_Format = wmaOutput;
Set audio capture mode.
VideoCapture1.Mode = VideoCaptureMode.AudioCapture;
Set the file name.
VideoCapture1.Output_Filename = "output.wma";
Start capture (sync or async).
await VideoCapture1.StartAsync();
Required redists
Visit our GitHub page to get more code samples.