在FMOD中播放和收听录音设备
是否可以使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 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.