Android sound length returning 0

Hi,

I am currently trying to implement a progress bar which fills based on the progress of the sound playing. The playback position is being reported correctly by the sound channel, but the sound itself reports a length of 0. This length is reported fine when targeting flash. I have tried using ogg and wav files when targeting android and both show an incorrect sound length.

Is this a known issue? If so, is there any estimate on when a fix will be implemented or if there is a workaround to get the sound length?

Does this work on the desktop? Does it matter if you use -Dlegacy or not?

It works if i target windows with the the -Dlegacy flag, but not without. And it doesn’t work with the flag for android.

Sound length appeared to be available in Lime, but was not available to native targets yet (without -Dlegacy). I think this should be available now (with this commit):