openfl: 5.1.5
lime: 5.2.1
openfl create PlayingSound
openfl test android
The starting of the app takes longer then expected
Tracing the load time
trace("begin getSound" + Math.round(haxe.Timer.stamp() * 100) / 100);
sound = Assets.getSound ("assets/stars.ogg");
trace("end getSound" + Math.round(haxe.Timer.stamp() * 100) / 100);
results in
8 seconds on my older phone
3 seconds on a not so old tablet.
For a 1.2Mb ogg file.
~+50% longer for my 3Mb music-track.
Digging for the cause, i ended up in
lime/media/AudioBuffer.fromFile:
NativeCFFI.lime_audio_load (path, audioBuffer);
But now i am kinda clueless.
Is it possible to speed this up somehow?
(wav is a lot quicker to load, but not suitable for music-tracks)
Do others have the same problem?
Is there an alternative?