User Tag List

Results 1 to 5 of 5

Thread: Preloading a lot of sounds,can I test if they're all loaded before starting the level

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2016
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Preloading a lot of sounds,can I test if they're all loaded before starting the level

    Hi there, been finding useful help on this forum for a while and thought I'd say hello and ask a question...

    I'm making a musical game for my son, there's lots of keys on an instrument, I'm preloading the sounds which are all OGGs.

    Preloading is great when you hit a button the sound plays straight away, almost no lag - Load on call, or load from disk lag quite a lot.

    So I have to use Preload to make the sounds play quickly when you hit the keys, the only problem is that when the level starts nothing happens for a while sometimes when you hit the keys, I guess because the sounds are Preloading, so my questions are:

    1. Is there a way to make sure all sound files have been pre-loaded? So I could keep the screen black till they're loaded then fade in when they're all ready?

    2. Do these files load alphabetically into memory from the start of the Data Elements?

    Thanks for your time!

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,593
    Mentioned
    268 Post(s)
    Tagged
    4 Thread(s)
    mm no sounds are preloaded with the frame not when you play it
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2016
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Fernando, thanks for taking the time to reply!

    Sorry if I misunderstand, so the frame will only load once all the sounds have actually preloaded?
    Because when I first start my level some of the sounds don't work when I hit objects untill a bit of time has passed, then all the sounds work, like they're loading into memory? I'm testing on a Nexus 5X.

  4. #4
    Clicker

    Fusion 2.5Fusion 2.5 MacAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    PlasticCogLiquid's Avatar
    Join Date
    Feb 2015
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Same here, the first action that plays a sound causes a big delay unless i set them to stream from disk.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2016
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found that on my old Samsung device the level hangs and doesn't load for a while but once it has loaded all the sounds work straight away. So I guess this is the correct behaviour as it doesn't let you play until all the preloaded sounds actually have preloaded.

    On my Nexus 5x the level loads fast but then it seems that the preload sound haven't loaded, and it takes a while before they all work.

Similar Threads

  1. Is there a limit to the number of internal sounds per level on Android?
    By steakor in forum Android Export Module 2.5
    Replies: 17
    Last Post: 22nd November 2015, 10:07 PM
  2. Sounds test problems with Html 5
    By CrystalNoir in forum HTML5 Export Module 2.5
    Replies: 1
    Last Post: 13th February 2013, 07:10 AM
  3. Preloading, memory effectiveness
    By Xeeko in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 24th May 2012, 07:52 PM
  4. Preloading an external image
    By arthurh in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 31st January 2012, 02:40 PM
  5. Test my level
    By Viewtiful in forum File Archive
    Replies: 10
    Last Post: 10th September 2009, 10:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •