如何从VB6中的麦克风录制声音? [英] How to record sound from a microphone in VB6?

查看:1257
本文介绍了如何从VB6中的麦克风录制声音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在使用什么似乎像使用WINMM.DLL和MCIsendString一个非常笨重的方法录音了十多年。

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).

我想知道是否有任何更好的方法来记录声音,如使用MCI控制等。

I was wondering if there is any better way to record sound, such as using the MCI control, etc.

推荐答案

我找到了一个替代方法:

I found one alternative way:

此替代MCISend 真的是复杂的,但是做了一些奇妙的东西,如:
 *环境容量
 *显示实时的声音米。
 *显示波形的实时性。

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.

和我发现了一些提示,可能使MCISendString工作好一点:

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


  1. 这家伙声称,MCISendString有一个缺陷(调换一些数字中的一些设置),这可能会导致音频不要在Windows Media Player播放。

  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.

有人举报到需要非常仔细地设定的方式不能完全记录的MCISendString参数。这是为了回应录音质量较差的报告。

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.

这篇关于如何从VB6中的麦克风录制声音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆