|
Post by Alan on Aug 9, 2019 14:13:02 GMT
I have a situation where I only want 1 instance of a sound group to play, and it should immediately stop any current instances of that sound group.
Setting Voices (Weight) to 1 will ensure only 1 instance plays, but I want the most "recent" instance to make any previously playing instances stop.
I could track playing groups manually and stop them, but I'm wondering if there is an easier/better method for this.
|
|
|
Post by DarkTonic Dev on Aug 9, 2019 18:28:23 GMT
Go to the Sound Group's Inspector, and change Variation Mode to "Dialog". There's also a fade option instead of immediately stopping the current voice. Dialog Sound Groups only have 1 voice playing at a time, the newest. Documentation on that is here: www.dtdevtools.com/docs/masteraudio/SoundGroups.htmBuses also have a "stop oldest" feature that works on a higher level - multiple Sound Groups can feed into a single bus. The Voice Limit of the Bus - if you set it - will track the oldest voice and stop it if the voice limit is already reached and you play a new sound on that Bus.
|
|
|
Post by Alan on Aug 9, 2019 20:36:41 GMT
Awesome, thanks for the fast support!
|
|
|
Post by DarkTonic Dev on Aug 9, 2019 21:32:25 GMT
No problem.
|
|