Hi,
The best way to check that FMOD functions have run correctly is to use FMOD_RESULT
. Most FMOD Functions will return a FMOD_RESULT
which you can then debug, a full list of the return values can be found under Core API Reference | Common.
It is a good idea to initialize variables, doing so avoids the possibility of using uninitialized values which may lead to undefined behavior.
Hope this helps!