Android Crosswalk audo takes a long time to load

  • Hi all,

    My app has a large amount of audio and it makes Android incredibly slow to load. 15+ seconds is way too long. I am using crosswalk to export to Android. iOS does not seem to have the problem at all (exporting with phonegap). I am just wondering if this is because of Construct 2 or crosswalk? Is the native C2 audio plugin not optimised to load incredibly fast for Android? Would it be better to use a custom audio plugin for Android?

    Thanks for the help!

  • Turn off 'Preload sounds' in project properties. Android can be pretty slow at decoding audio, and if that option is on, it will decode all sounds in the project before starting.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ashley Thanks for the response!

    I have done that, it loads quickly, but then the audio takes a long time to load. Apps which have a lot of audio the app takes a long time to load. Is this due to Construct 2 or Crosswalk? As phonegap does not have much of a lag with iOS?

    Is there any way to somehow mitigate this issue?

    Thanks

  • decoding audio is mostly always slow the best thing to do is try to use sort loops whenever you can.

  • I just can't understand why on iOS it takes a few seconds to load, but on Android it takes a significantly longer time to load. Other apps from the app store don't have the problem, so I am just wondering if the issue lies with crosswalk or C2.

  • I think it's a problem with Android, it's just not very fast at decoding audio. IIRC I remember a Chrome engineer saying the Android media APIs weren't great which meant long decode times sometimes.

    There's not much you can do other than either preload everything and wait it out, or don't preload on startup and use the 'preload' action to try and get the few most important sounds preloaded in advance of whenever they'll be needed.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)