User Tag List

Results 1 to 6 of 6

Thread: Need tips for using sounds

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    DiegoArthur's Avatar
    Join Date
    Oct 2014
    Location
    Alegrete
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need tips for using sounds

    Hello all.

    I am developing a shmup which is using a lot of sound effects. Those effects are affecting the performance, dropping the FPS from 60 to ~30. When I remove all the sounds, FPS is locked on 60.

    I need some tips on playing sounds on Android, as I need many sound effects playing at the same time.

    Thanks!

  2. #2
    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)
    Bree's Avatar
    Join Date
    May 2014
    Posts
    317
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    What type of files are you playing? Are they oggs or wavs? Sometimes using wavs for small sound effects work better because it's harder for Android to play compressed files.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    DiegoArthur's Avatar
    Join Date
    Oct 2014
    Location
    Alegrete
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Bree View Post
    What type of files are you playing? Are they oggs or wavs? Sometimes using wavs for small sound effects work better because it's harder for Android to play compressed files.
    Hello. I am using wav files ranging from 4 to 80 kb.

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,365
    Mentioned
    218 Post(s)
    Tagged
    4 Thread(s)
    Do you have any small mfa that can reproduce this lost of FPS fro me to check?

    when sounds are preloaded they are play in a separated thread as the play from disk sounds
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    DiegoArthur's Avatar
    Join Date
    Oct 2014
    Location
    Alegrete
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    Do you have any small mfa that can reproduce this lost of FPS fro me to check?

    when sounds are preloaded they are play in a separated thread as the play from disk sounds
    Here: https://1drv.ms/u/s!AouRlI4fmN-D0S-s...ZwE57?e=Mo19nQ

    I created a small .mfa that plays some of the sounds I am using in a sort of random way, trying to simulate shooting and hitting enemies and walls.

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,365
    Mentioned
    218 Post(s)
    Tagged
    4 Thread(s)
    thanks for the example

    I see you have a mix of two worlds, create objects, and play sounds, two of the most expensive actions that require memory and involve the garbage collector so you will have different results.

    in middle device you may have from 30-57 and in nougat you may have from 53 - 58, and you may see these values depends on how the memory is used and collide when playing sounds or creation.

    may I suggest to create the object before and test, so you can see how it will impact, also notice that if you change the bullet images (just like a 3x3 pixels square) the min in the same device will be higher, so that the sound affect.


    I will see if I can get more speed or try to handle soundpool in a faster way, without affecting the runtime.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. [Bug] "Resume all sounds" plays previously loaded sounds in an uncontrollable state.
    By raxabit in forum Universal Windows Platform Module 2.5
    Replies: 1
    Last Post: 31st January 2019, 06:57 AM
  2. Varying sample sounds, frequency sounds weird
    By Lukiester in forum Fusion 2.5
    Replies: 1
    Last Post: 10th May 2018, 01:52 PM
  3. New sounds keeps cutting off old sounds
    By YeOldeLuke in forum Fusion 2.5
    Replies: 1
    Last Post: 1st February 2018, 09:20 AM
  4. Tips for sounds in android development
    By Fernando in forum Android Export Module 2.5
    Replies: 12
    Last Post: 28th April 2016, 06:30 PM
  5. Sounds sounds sound
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th November 2007, 08:26 AM

Posting Permissions

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