If you want to play the same file while it is capturing, you can achieve that using LEADTOOLS Multimedia toolkit controls and enabling Audio Preview. The following few lines of code will do the job: /*******************************************/ CaptureCtrl1.AudioDevices[0].Selected= 0; CaptureCtrl1.VideoDevices[0].Selected= 0; CaptureCtrl1.PreviewSource = CapturePreview.Audio; CaptureCtrl1.TargetFormat = TargetFormatType.MP3; CaptureCtrl1.TargetFile = @"C:\output.avi"; CaptureCtrl1.StartCapture(CaptureMode.VideoAndAudio); /*******************************************/ Disclaimer: I work for the company that created this library.
Use NAudio, an open source .NET audio library capture and play audio. It can extract the property of audio file like BitRate, Size type too.Add from NuGet package manager or
Mohamed AbedallahPosted Feb 16, 2017, 5:02 AM
The following few lines of code will do the job:
/*******************************************/
CaptureCtrl1.AudioDevices[0].Selected= 0;
CaptureCtrl1.VideoDevices[0].Selected= 0;
CaptureCtrl1.PreviewSource = CapturePreview.Audio;
CaptureCtrl1.TargetFormat = TargetFormatType.MP3;
CaptureCtrl1.TargetFile = @"C:\output.avi";
CaptureCtrl1.StartCapture(CaptureMode.VideoAndAudio);
/*******************************************/
Disclaimer: I work for the company that created this library.
Avnish KumarPosted Feb 9, 2017, 2:29 AM
Guest UserPosted Feb 7, 2017, 8:01 AM
Suvendu Shekhar GiriPosted Feb 6, 2017, 3:16 AM