Search Unity

Audio Audio Profiler question -> Plays?

Discussion in 'Audio & Video' started by AthosK, Sep 18, 2018.

  1. AthosK

    AthosK

    Joined:
    Jan 20, 2013
    Posts:
    428
    So i'm using a .Play() on an audio source (already tried it with OneShotAsWell). The audio profiler mentions under Plays that instead of 1, it was played 6 times (the number varies but it's never 1). To my understanding and lack of any documenation, I assume that this means the audio clip played multiple times instead of 1, right?

    However, with debugging and even adding (!audioSource.isPlaying) before the .Play() it still stays consistent. Does anyone have a clue as to why could that be?

    I've also tried an empty scene with an audio source with PlayOnAwake ticked, the profiler shows only 1 play. So I'm at a loss

    edit: Murphys Law: I found the answer as soon as I posted it, it has to do with having a mixer assigned, so the question now is. Does it actually make it that it plays 6 times?
     
    Last edited: Sep 18, 2018