whorus
New Member
Posts: 5
Posts: 5
|
Post by whorus on Jan 23, 2022 7:11:09 GMT
TLDR: the outcome/behaviour of actual audio is exactly what I wanted, why the flood of logs?
My logs are being flooded with:
"MasterAudio: Polyphony limit of group: XXXX exceeded and no playing Variation is usable for Retrigger Limit Mode. Will not play this sound for this instance."
I purposefully set "Limit Polyphony" and purposefully set "Polyphony Voice Limit" to "1". Not playing, if retriggered, is exactly the outcome I wanted so how do I stop the flood of logs?
My use case (perhaps I went about this the wrong way): This group is pain sounds my main character, the one the player is controlling, is making. If pain is again inflicted, while he's still groaning I don't want the current pain sound to stop and I don't want one individual to have multiple simultaneous voices.
So when I set "Limit Polyphony" and set the voice limit to "1" it ensured what I wanted but now my logs get flooded whenever, in game, the main character is hit with something doing extended pain over a long course of time.
Thanks, Clive
|
|
|
Post by DarkTonic Dev on Jan 23, 2022 8:05:38 GMT
Have you turned on Log Sounds globally or for that Sound Group? Most (all?) warnings like that only get logged when you enable that, which is for troubleshooting.
If it's off, let me know and I'll make it so.
-Brian
|
|
whorus
New Member
Posts: 5
Posts: 5
|
Post by whorus on Jan 24, 2022 14:56:02 GMT
Hi,
So it turns out there's something weird going on.
I have "Logging Settings -> Log No Voices Left" enabled - which is presumably causing the logging as I described previously. I'd argue that while technically correct I'd love to be able to see logs when I legitimately unexpectedly run out of voices, verses hitting a specific restriction I imposed on purpose.
That said, disabling "Log No Voices Left" not only prevents the above log but disabled the entire polyphony limit feature with many voices now able to happen overlaying each other simply by disabling that check box.
-- Clive
|
|
|
Post by DarkTonic Dev on Jan 24, 2022 17:21:34 GMT
I'm not having that experience, turning off Log No Voices Left doesn't disable the Polyphony Limit for me.
If you could send me a simple project that reproduces the error, let me know how to reproduce it, and I'll take a look.
Re: your "expected" vs" unexpected" warnings being logged, there's really no way the program would know that. If you know what all the settings do and set them appropriately, nothing would be unintentional - theoretically. The settings to log are for troubleshooting when you don't know why the sound isn't playing. There are 6 or so ways that can happen, according to the flowchart in the documentation.
|
|
whorus
New Member
Posts: 5
Posts: 5
|
Post by whorus on Jan 24, 2022 19:03:48 GMT
I've attached a unity package (sans MasterAudio itself, you'll need to import that ) Also, here's a video, made using the attached package, that clearly shows what I'm speaking about: MasterAudio-PolyphonyDemo.unitypackage (454.64 KB)
|
|
whorus
New Member
Posts: 5
Posts: 5
|
Post by whorus on Jan 24, 2022 20:58:32 GMT
... Re: your "expected" vs" unexpected" warnings being logged, there's really no way the program would know that. If you know what all the settings do and set them appropriately, nothing would be unintentional - theoretically. The settings to log are for troubleshooting when you don't know why the sound isn't playing. There are 6 or so ways that can happen, according to the flowchart in the documentation. Perhaps a middle-ground solution to "expected vs unexpected" is to allow specific sound groups to override and toggle/disable logging of polyphonic voice exceeds/overflows. If I have a couple of groups that use limitation explicitly for purpose, I'd love to be able to disable logging of exceeds on those groups only, so that I do still get logs when exceeding in other places, other groups where this behaviour was not the intent -- because then I'd be aware of an issue I need to address. Thanks, Clive
|
|
|
Post by DarkTonic Dev on Jan 24, 2022 22:03:49 GMT
Thanks, looks like it's a bug I've fixed for the upcoming version. No can reproduce on my current beta.
You can either wait for the upgrade, which is coming in the next month (it's paid though), or you can email us your Asset Store invoice PDF file and reference this thread so I know who you are. I'll send you the beta now if you go that route.
I don't think it's necessary to make everything granular for all the various out of voices options. You can disable logging when you don't need it. When you do want it, the more info, the better.
Thanks, -Brian
|
|
whorus
New Member
Posts: 5
Posts: 5
|
Post by whorus on Jan 25, 2022 6:54:25 GMT
Thanks, looks like it's a bug I've fixed for the upcoming version. No can reproduce on my current beta. You can either wait for the upgrade, which is coming in the next month (it's paid though), or you can email us your Asset Store invoice PDF file and reference this thread so I know who you are. I'll send you the beta now if you go that route. I don't think it's necessary to make everything granular for all the various out of voices options. You can disable logging when you don't need it. When you do want it, the more info, the better. Thanks, -Brian If the upgrade follows the normal Unity Asset Store upgrade paths and I get a discount as a prior supporter then I'm as happy as can be and don't mind waiting (or paying) for the next update, look forward to it even. Thanks, Clive
|
|
|
Post by DarkTonic Dev on Jan 25, 2022 16:59:22 GMT
Thank you for the support. We will definitely offer an upgrade path that is less expensive. Watch for announcements in this forum!
-B
|
|