This question partially continues from my previous one at [iOS] change to setDSPBufferSize causing increased occurrence of 'Error initializing output device.' where I experienced failures to initialize FMOD at startup on iOS.
I previously fixed this by, as recommended, sleeping and retrying to initialize the FMOD system once more which seemed to resolve my problem.
I am however experiencing the same issue when calling
mixerResume() after the application returning to the foreground.
My question is: What are the correct steps to take in the case of
mixerResume() failing? and how does FMOD handle this.
I found reference in [iOS] Frequent SystemNotInitializedException saying that the initialization will throw an ‘exception’ once and switch to no sound mode afterwards. Does this still apply to current FMOD? If so, is it safe to accept the single error of
Error initializing output device. and to continue to make calls to FMOD as if resuming was successful?
I am uncertain that it is safe to perform a sleep in resuming the app from background and therefore hope to opt for a ‘graceful failure’ in having FMOD continue to run but not throw errors for all calls. (no sound is acceptable) instead of the current crashing that we are experiencing on trying to resume the mixer.