I’m experiencing a lock-up with our game. We are running kernels on each thread and it seems fmod does not play nice with sharing a hardware thread.
I am streaming an xma (tried mp3 as well) file and i’m guessing something in the stream servicing is locking but never unlocking. Any ideas? It does not seem to make a difference where I set fmods threads to run.
- carsonfee asked 12 years ago
I think we sorted out one part of the problem. The update was being called directly from rendering (running on another thread/kernel). I’ve set up a timer on the same thread as fmod now and updating from there (a hack at best since it’s totally asynchronous from rendering now 😕 ).
- carsonfee answered 12 years ago
We have to put this in big bold letters in the documentation for next time, developers should never run fmod commands from different threads. We dont want to have to start putting criticalsections everywhere to protect it for performance reasons, so it is best to just call all fmod commands from the main game thread, including update, once a frame.
Please login first to submit.