开发者

Set sample rate in fmod

How do I set up the sample rate in Fmod?

I initiate my event system with the following code. Can I add the sample rate into 开发者_JS百科this method?

result = eventSystem->init(32, FMOD_INIT_NORMAL | FMOD_INIT_ENABLE_PROFILE, NULL, FMOD_EVENT_INIT_NORMAL);


No, to specify the sample rate for the system you need to use System::setSoftwareFormat.

To do this with the EventSystem, you must create an EventSystem object, then call EventSystem::getSystemObject, with that System object you can call System::setSoftwareFormat specifying the sample rate. All of this happens before you init the EventSystem object.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜