|
Post by xinister on Aug 25, 2014 22:19:00 GMT
Hi I increased the instances (weight) on my sound clip. In game, the playback gets interrupted by new playbacks. How do I make the different instances actually overlap over one another?
|
|
|
Post by DarkTonic Dev on Aug 25, 2014 23:09:14 GMT
They will overlap by default, but still be interruptible. If you changed the Group to Dialogue mode, it will only be one sound at a time ever. If you want no overlapping possible, change Retrigger percentage from 50% (default) to 100% on the Sound Group.
|
|
|
Post by xinister on Aug 25, 2014 23:44:36 GMT
Thanks for the reply! My sounds are still not overlapping correctly though.
I think maybe it's not working properly b/c I'm calling the sound from code? This is how I call it: MasterAudio.PlaySound3DAndForget ("voice_male_generic_death", transform);
|
|
|
Post by DarkTonic Dev on Aug 25, 2014 23:46:15 GMT
It doesn't matter how you call it. Any PlaySound method will do the same overlapping. What weight have you changed the Variation to and how many variations do you have in that Group?
If you put the weight to 6, the 6 will be called in random order and then refill the random pool. So you can have 6 of the same sound overlapping.
|
|
|
Post by xinister on Aug 25, 2014 23:59:23 GMT
This is how I reproduce this: 1. create new scene 2. drag in Master Audio prefab 3. drag in a sound clip, change weight to 5. 4. add script to Camera void Update () { if (GameInputs.GetMouseButtonDown (0)) { MasterAudio.PlaySound3DAndForget("voice_male_generic_death"); } }
Now if I click the mouse successively I only hear one sound at a time, each interrupting the previous playback.
|
|
|
Post by DarkTonic Dev on Aug 26, 2014 0:44:55 GMT
First of all (but this should have nothing to do with your problem), do not drag in any prefabs. Create them from the Master Audio Manager window. That way your Scene prefabs will not be associated with the prefabs in the Master Audio folder. This is good because the next time you update the plugin, you won't lose all your settings on the Master Audio prefab  I just tried your steps and it works for me. The scream sound is overlapping 5 times if I click quickly. Does the voice count on the mixer (Master Audio Inspector) show 1 the entire time for you? If it's a higher number, it is not interrupting but playing different Variations each time.
|
|
|
Post by xinister on Aug 26, 2014 2:31:25 GMT
Thanks for the tips! I created the scene again, for some reason now it works.
|
|
|
Post by xinister on Aug 26, 2014 4:25:23 GMT
Okay. I know what the problem was for me, in case anyone runs into the same problem. So the same sound clip was referenced else where in my project with built-in audio playback functions. (Audio Source etc.) I removed all audio sources from my project and now exclusively use Master Audio for all sounds. Now the problem is gone.
|
|
|
Post by DarkTonic Dev on Aug 26, 2014 4:29:52 GMT
Aha! Yeah you shouldn't need to set up any Audio Sources in your Scenes at all. Master Audio will handle everything for you. And if you do have any Audio Source in the Scene, they won't be under the control of Master Audio, so they won't be nearly as useful.
|
|
|
Post by xinister on Aug 26, 2014 17:16:38 GMT
Okay, I lied. The problem is back. This time, I fixed it by going to the clip manager and changing the clip to "Decompress on load". Any idea why that makes a difference?
|
|
|
Post by DarkTonic Dev on Aug 26, 2014 22:55:40 GMT
I don't know, but I never use Decompress on load. Is it an mp3?
|
|
|
Post by xinister on Aug 26, 2014 23:49:12 GMT
Yes, it is an mp3.
|
|
|
Post by DarkTonic Dev on Aug 27, 2014 0:10:41 GMT
I'm not sure how to reproduce your problem. Can you replace "Arrow" in the example scene with your mp3 and tell me if it works there? That has weight of 7 I think.
|
|
|
Post by xinister on Aug 27, 2014 1:19:03 GMT
So I tried what you said with all 3 load type settings: 1. decompressed on load - works 2. compressed in memory - Does not work 3. stream from disc - works
|
|
|
Post by DarkTonic Dev on Aug 27, 2014 2:47:43 GMT
That makes no sense. I just tried the "Standalone Scene" example Scene and replaced the arrow sound with "King.mp3" which is also included. I tried all 3 load type settings you listed and they all play 3 overlapping sounds at once. That is the bug you're currently talking about right?
|
|