I was wondering if I could ask for help. I have been trying to figure out why the following behavior happens:
FMOD runs in our title for several hours with thousands of events, CreateSounds, streamed audio, snapshots, all that. At some point, quite rarely (say once every 500 hours), when calling set3DAttributes on an event instance, I get FMOD_ERR_MEMORY for an FMOD_RESULT of the operation. At that point, FMOD Studio practically ceases to work. The playback is stuck in an endless loop approx. 0.8 seconds long.
// m_pFmodStudioEventInstance points to a valid object
// m_Pos is a valid object
FMOD_RESULT result = m_pFmodStudioEventInstance->set3DAttributes(&m_Pos);
FMOD Studio would have by then allocated about a half of the pool available to it but still it should have plenty of memory to work. I was never able to reproduce the error.
My version is 1.09.04. An old one, I know, but for certain reason we can’t really upgrade.
Please, have anyone encountered a similar thing? What would you do?