开发者

How to record sound from a microphone in VB6?

We've been recording sound for over a decade using what seems like a very clunky method using the Winmm.dll and the MCIsendString.

I've read that this doesn't set the recording quality value correctly (not sure if that article was ever true or is still true).

I was wondering if there is a开发者_高级运维ny better way to record sound, such as using the MCI control, etc.


"Clunky" is right. I've also been using the MciSendString method. If you are willing to move off VB6, you could use the Microphone support in Silverlight 4. Combined with the out of browser support, it could conceivably replace you VB6 app. (sorry, long shot).


I found one alternative way:

This alternative to MCISend is really complicated but does some neat stuff like: * Setting volume * Displaying sound meter in real time. * Displaying waveform in real time.

And I found some tips that may make the MCISendString work a bit better:

  1. This fellow claims that the MCISendString has a flaw (transposes some digits in some of the settings) which can cause the audio to not be playable in Windows Media Player.

  2. Someone reported needing to set the MCISendString parameters very carefully in a way not fully documented. This was in response to a report of poor recording quality.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜