Hi,
The Loading delay exceeded, sound may play at incorrect time
error means that too many samples are being loaded in at once, to solve this we need to change which FMOD.MODE
we use when creating the sound. The line we will need to change is:
FMOD.MODE soundMode = FMOD.MODE.LOOP_NORMAL | FMOD.MODE.CREATECOMPRESSEDSAMPLE | FMOD.MODE.NONBLOCKING;
//Too
FMOD.MODE soundMode = FMOD.MODE.CREATESTREAM;
In the CALLBACK
function. This mode is explained under FMOD API Reference | Common | FMOD_MODE.
Waveform instance in error state 38
is due to an invalid seek position being passed into the createSound()
function. Unfortunately, I was not able to recreate this error when loading in a mod file. However, a solution may be using StudioSystem.setStreamBufferSize()
to increase read head, as explained under Core API Reference | System.
We are always looking to improve our documentation and I have passed on your comments to our dev team.