开发者

Recording audio from Microphone in WPF C#

I am working on a WPF appl开发者_Python百科ication that includes record audio data, to be embedded in documents.

my question is how I can record audio and show volume waves on display!

EDIT

I don't want Third Party libraries, there should be some solutions using direct-x or Windows API, Isn't there ?


No, there is no Windows API function to interpret waveform data so you can display it.

There are built-in methods for recording, for example any simple search will help: How do I record audio with C#/WPF?

A wave file may be in an easily-interpreted format, i.e. they are usually uncompressed, 16-bit data, 2 bytes per sample, 1 sample for each channel (L,R), some header information and 44100 samples per second. Unless you use a library, you'll have to do your own (simple) data processing to convert that to a waveform display.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜