我怎么能产生不同频率的连续色调? [英] How can I generate continuous tones of varying frequencies?

查看:151
本文介绍了我怎么能产生不同频率的连续色调?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

欲生成并播放连续的声音与随时间变化的特定频率和振幅。我不希望有声音之间的延迟。我怎样才能做到这一点用Delphi或C ++ Builder?

I want to generate and play a continuous sound with specific frequencies and amplitudes that change over time. I don't want to have a delay between sounds. How can I do this with Delphi or C++ Builder?

推荐答案

通过使用WaveAudio库有可能产生一个连续余弦波。

By using WaveAudio library it's possible to generate a continous cosinus wave.

我要去发布一些code,但我无法弄清楚如何做正确,所以我不会的。

I was gonna post some code but I can't figure out how to do it properly so I won't.

不过,所有你需要做的是使用TLiveAudioPlayer,然后覆盖昂达事件。

But all you need to do is use TLiveAudioPlayer and then override the OnData event.

和还设置异步为true,如果没有消息泵。

And also set Async to true if there is no message pump.

这篇关于我怎么能产生不同频率的连续色调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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