Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

General Guides For Audio Clip Usage

Discussion in 'Audio & Video' started by luniac, Mar 13, 2015.

  1. luniac

    luniac

    Joined:
    Jan 12, 2011
    Posts:
    614
    Can someone make like a sticky or something regarding best practices with all these audio clip settings...

    there are 3 load types:
    decompress on load
    compressed in memory
    streaming

    what's the best for 1 long music clip VS a split second gunshot clip playing hundreds of times a minute VS clips that play a handful of times a minute.

    what's the benefits of each compression format regarding the above 3 scenarios?
    PCM vs vorbis vs ADPCM

    and what is this sample rate stuff, how does it affect quality vs compression?

    if i have a small game with less than 20 different sounds is it cool to have it all at highest quality? probably still good to test on device right?

    any assistance is very helpful.
     
    Last edited: Mar 13, 2015
  2. jerotas

    jerotas

    Joined:
    Sep 4, 2011
    Posts:
    5,572
    As a general rule, I only run at most 1 streaming sound at a time (music usually).
    I make all sound effects non-compressed (they play with much less latency: something like 25-50 times less). I'm not sure if "decompress on load" is that, or not. I would prefer an option of "do not compress" but maybe you're only showing the options for compresed files?
     
    luniac likes this.