gpt4 book ai didi

c++ - 使用 FMOD 库录音

转载 作者:塔克拉玛干 更新时间:2023-11-03 06:57:55 26 4
gpt4 key购买 nike

是否有关于 FMOD 的 C++ 教程显示如何从麦克风录制声音?甚至可能吗?谢谢大家。

最佳答案

确实可以。查看 FMOD 示例目录(\FMOD SoundSystem\FMOD Programmers API Win32\examples\recording),您会找到“录音”示例。

/*=============================================================================================== Record example Copyright (c), Firelight Technologies Pty, Ltd 2004-2010.

This example shows how to record a sound, then write it to a wav file. It then shows how to play a sound while it is being recorded to. Because it is recording, the sound playback has to be delayed a little bit so that the playback doesn't play part of the buffer that is still being written to. ===============================================================================================*/

关于c++ - 使用 FMOD 库录音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7000199/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com