2

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 this method?

result = eventSystem->init(32, FMOD_INIT_NORMAL | FMOD_INIT_ENABLE_PROFILE, NULL, FMOD_EVENT_INIT_NORMAL);
ChrisF
  • 134,786
  • 31
  • 255
  • 325
Ellen S
  • 1,047
  • 1
  • 13
  • 18

1 Answers1

2

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.

Mathew Block
  • 1,613
  • 1
  • 10
  • 9