在FMOD中播放和收听录音设备

发布于 2024-11-07 19:53:44 字数 118 浏览 7 评论 0原文

是否可以使用FMOD api同时播放录音设备?此功能与 Windows 在录音设备属性中提供的功能相同,您可以在其中为某些录音设备启用“侦听此设备”。如果通过 FMOD 无法做到这一点,是否还有其他更适合此功能的 API?

Is it possible to simultaneously playback the recording device by using the FMOD api? This functionality would be the same to what Windows offers in the recording device properties where you can enable "listen to this device" for certain recording devices. If this isn't possible via FMOD, is there another API more suited for this functionality?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空心空情空意 2024-11-14 19:53:44

您可以使用 FMOD 实现此目的,只需将循环设置为 true 进行录音,然后也循环播放录制的声音。如果您将 recordStart 调用和 playSound 调用分开一段时间(例如 10 毫秒),播放光标和记录光标将相互跟随,您将获得实时播放。

大多数平台的 FMOD API 中都有一个“录音”示例,Windows 平台上有一个更高级的示例,该示例显示向现场录制的声音添加实时效果。

You can achieve this with FMOD by simply recording with looping set to true, then play the recorded sound as looping also. Providing you separate your recordStart call and your playSound call by some time (say 10ms) the play cursor and the record cursor will follow each other and you will get realtime playback.

There is an example of this with the "recording" example that ships in the FMOD API for most platforms and there is a more advanced example on the Windows platform that shows adding realtime effects to a live recorded sound.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文