|
Post by direpixel on Sept 30, 2019 23:23:34 GMT
I haven't purchased Master Audio yet but I am in the market for a Unity audio asset that will help solve a problem I am having. Currently, I making a 2D shmup and lets just say my player ship can fire dozens of rounds every few seconds. Well, one of those types of rounds is explosive and spawns explosions, each playing a sound effect when spawned. It looks beautiful in the game but there's so many of these sound effects playing in Unity the audio is cutting out and I can't seem to figure out how to fix that without just cutting down on the maximum number of sounds playing at one time. I'm wondering if anybody can tell me if Master Audio can help solve this problem for me? If I must accept that fewer explosion sound effects be playing at the same time then that's what it is, but will Master Audio handle this for me? Or maybe this asset will allow me to still play all of them at the same time? When they play properly (before they start cutting out) it almost sounds like automatic gunfire from multiple guns in the distance of a war movie lol.
|
|
|
Post by DarkTonic Dev on Oct 1, 2019 1:48:22 GMT
That is actually the very first problem I needed to solve for our iOS game back in 2011, and is the reason I first developed Master Audio. Yes, for each sound effect you set the maximum number of that sound that can be played at once. The default is 1 voice, but Unity allows you to play up to 32 voices simultaneously between all the audio, and Master Audio can limit it at several levels. You can also choose a minimum percentage of the sound that, after played, the voice can be re-used without needing a new voice, which is good if you actually want machine gun sounding effects.
If you play more than 32 voices, the 32 with the highest Priority will be played and the rest muted. Priority is on the Audio Source itself.
|
|