We have reach a point that we have a choice to make.
Retain compatibility with Android Froyo OR go for lower latency Audio with OpenSL ES (introduced just after Froyo).
Lower latency audio means sounds would play faster with less delay before the user can hear them.
Froyo is on 0.1% (or less) of devices. I tried moving from min api 8 to min api 9 and lost about 80 devices out of tens of thousands on google play dev. Most Froyo devices are around 6 years old.
What does everyone think ?
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
https://deluxepixel.com
Comments
Likes: hgy29, MobAmuse, n1cke, antix
https://deluxepixel.com
like all functions with Legacy added to its name?
if not, all in all probably it's not a big deal nowadays to loose froyo, it has 0.1% market share and probably those people anyway do not spend too much time playing/buying apps.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: SinisterSoft, n1cke, MobAmuse
Likes: MobAmuse
https://deluxepixel.com
Likes: SinisterSoft
Likes: MobAmuse, SinisterSoft, n1cke
Fragmenter - animated loop machine and IKONOMIKON - the memory game
https://play.google.com/store/apps/details?id=com.mobileamusements.DrumHead
Likes: SinisterSoft
Likes: SinisterSoft
Likes: SinisterSoft, MobAmuse, pie, antix, totebo, chuz0, john26
Likes: SinisterSoft
Either I or someone else will look into this a little more, if it works then we get the best of both worlds.
Likes: antix, simwhi, MobAmuse, pie
https://deluxepixel.com
I'd really like to get away from wavs, which are too big. I'm also doubtful about using mp3s because of copyright issues. It would be great to use the ogg format on Android.
Is there anything similar for iOS? Construct 2 uses m4a files, which dont have any royalty issues.
Likes: n1cke, MobAmuse
https://deluxepixel.com
https://play.google.com/store/apps/details?id=com.mobileamusements.DrumHead
Likes: talis, MikeHart, totebo, john26, hgy29, antix, SinisterSoft
Likes: MobAmuse
Upgrade to latest OpenAL sound library for better sound latency
Currently mp3 files don't repeat on
somemost devices without having to use messy event handlers to manually loop them. Does this update resolve this or is this still an issue?It may be that the bug for mp3s isn't actually within Gideros, but is actually an Android fault.
If it is Gideros then a guess would be that an event is being missed or that the position (once the music has passed the end) is beyond or reset to before the beginning of the sound and so it somehow is missed?
If you have a mp3 that can fail to repeat reliably on all devices then please link to a dropbox copy of it and I'll check on my system and see if I can fix it?
https://deluxepixel.com
Okay I don't the MP3 files themselves aren't at fault. I have many that play fine on my Pixel-C, fine on my Nexus7 (R.I.P) but do not loop on my Nexus 4. So if it;s not a Gideros issue..
Maybe it's a hardware issue because both the Nexus models were running the exact same version of Android and only the Nexus4 failed to loop correctly.
It's basically this library:
http://xmp.sourceforge.net/
Version 4.3
If you look in the list of 'supported formats' on that webpage then you will see the files it will play. It also can do more as there is a mixer api so you have a spare set of 64 'voices'. We haven't added any commands to access these yet though.
It really needs updating to 4.4 then maybe the extra sound commands being added to Gideros.
https://deluxepixel.com
Likes: SinisterSoft
https://deluxepixel.com
Likes: SinisterSoft, john26
Just a dream, but you never know...
Likes: totebo, MobAmuse
https://deluxepixel.com