User Tag List

Results 1 to 3 of 3

Thread: Too many audio samples in one frame causes game to freeze!

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Mar 2012
    Posts
    74
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Too many audio samples in one frame causes game to freeze!

    I have 120~ audio samples in one frame, and depending on the level only 20 or so are called. What happens is that they all get loaded in memory and this causes the game to become unresponsive for quite some time(20 seconds on a Nexus 5).
    I have attached a screenshot of the events that i'm using.

    Is there any way to only load the samples that are needed.
    clickforum.PNG

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,749
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    imaging if you are using preload in all of them

    120 * 1MB soundpool buffer is like 120 and to fill this from mp3, ogg or any decoder even wav take time

    may I suggest to change them to mediaplayer using play from disk, not all of them of course leave 10 as preload (which are using at teh beginning) all sounds you use background music set as play from disk
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Mar 2012
    Posts
    74
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    That was actually what I was looking for! Thank you very much.

Similar Threads

  1. Multi-Samples Audio Problem Android
    By Doverseer in forum Android Export Module 2.5
    Replies: 24
    Last Post: 24th April 2016, 12:39 AM
  2. How to avoid audio ducking of samples?
    By Storsorgen in forum Fusion 2.5
    Replies: 12
    Last Post: 17th January 2016, 11:07 AM
  3. Using audio samples makes my application a screensaver
    By Filip in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 6th April 2014, 05:25 PM
  4. Random audio samples?
    By gagegage926 in forum Fusion 2.5
    Replies: 3
    Last Post: 24th March 2014, 04:37 PM
  5. Frame Freeze?
    By Sumo in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 26th August 2010, 07:48 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
  •