Currently the native audio playback is stopped in Java. FMOD can self-stop using a callback. Previous attempt was unstable on Windows. If this is done the library can be spun off as a separate open-source product.
The huge last frame workaround is known to be related to this problem. If the native thread stops itself in time there is no huge last frame reported.
Also, FMOD should not be accessed from multiple threads. Currently the stopPlaback() call is on a different thread than the update() calls.
Currently the native audio playback is stopped in Java. FMOD can self-stop using a callback. Previous attempt was unstable on Windows. If this is done the library can be spun off as a separate open-source product. The huge last frame workaround is known to be related to this problem. If the native thread stops itself in time there is no huge last frame reported. Also, FMOD should not be accessed from multiple threads. Currently the stopPlaback() call is on a different thread than the update() calls.