开发者

Save output to disk using FMOD

开发者 https://www.devze.com 2023-03-09 07:21 出处:网络
I am using FMOD to play some sounds and I would like to save the resulting mix to the di开发者_开发技巧sk.

I am using FMOD to play some sounds and I would like to save the resulting mix to the di开发者_开发技巧sk.

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号