Save output to disk using FMOD

我怕爱的太早我们不能终老 提交于 2019-12-07 18:01:54

问题


I am using FMOD to play some sounds and I would like to save the resulting mix to the disk.

I have been trying the system->recordStart(0, sound, true) path, but that saves the microphone input of the device.

In some way, I would like to redirect the speakers output to the disk

Thank you

Marc


回答1:


To redirect everything that would go to the speakers to disk simply use the function System::setOutput and pass in a value of FMOD_OUTPUTTYPE_WAVWRITER. Make sure you call this function before you call System::init, when you are done call System::release and a wav file will appear next to your executable.

You can also specify the name and location of the output wav file by passing a full path via the System::init extradriverdata parameter.



来源:https://stackoverflow.com/questions/6171108/save-output-to-disk-using-fmod

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!