Sound stuttering on Android
When starting an application on android there's a chance for all sounds to seemingly play at half speed, sounding very stuttery. It usually stops after the application has been restarted.
Test it with this repository: https://github.com/jefvel/kha-tests/tree/audio-test
Build, run, and touch the screen for sounds. It should make a single click noise. Close it completely and start up again. From time to time it will sound like two clicks, or straight up crash on startup.
I'm unable to reproduce this issue on both a Samsung SM-G930F and Fairphone FP2. Neither did it crash nor did it stutter, play at half speed or sound like two clicks after several attempts of running, touching and every time closing completely.
I had to modify your Main.hx to get it to actually compile / run.
Can you still reproduce the issue with up to date versions of Kinc / Kha?
Hm, this was probably fixed when we switched to Android's C++-audio-API.