cuzer
New Member
Posts: 31
Posts: 31
|
Post by cuzer on Jul 10, 2015 15:38:46 GMT
Hello,
How can I fade and stop a sound group using only one MA playmaker action?
I am trying to stop a sound group using "Stop All of Sound" action (PlayMaker). It works; however, the sound is stopped abruptly, without using custom fade out settings in the variation(s). I can fade the sound out by using a fade action before stopping the sound, but that would render my fader settings in MA obsolete, since I have to fade the sound in again after stopping.
Thanks.
|
|
|
Post by DarkTonic Dev on Jul 10, 2015 18:16:10 GMT
Which fade action are you using? I believe there are several.
|
|
cuzer
New Member
Posts: 31
Posts: 31
|
Post by cuzer on Jul 11, 2015 21:01:49 GMT
I usually use 'Master Audio Group Fade,' if I need to fade something out. However, I was wondering how it is possible to fade out and stop the sound, and have the MA group volume ramp up back to the default value after the stopping action (so whenever that sound is triggered again, the volume is npt 0).
To give an example, if I play a sound group using event sounds, that group would conveniently fade in, given that the variations have custom fade in time set. However, this does not work the same way for group fade out, when I stop the sound using 'Stop All of Sound.'
|
|
|
Post by DarkTonic Dev on Jul 11, 2015 22:03:58 GMT
If you want to fade *all* of a Sound Group to volume X, X will be your permanent new volume of that Group since it changes the Group volume to do that. There's no way around that. You'll need to set the Group volume or fade it back in to something else later after it finishes.
If what you really want to do is "fade only those variations of Sound Group X that were made by this game object", meaning not necessarily all period, we will make a Playmaker Custom Action of the API:
MasterAudio.FadeOutSoundGroupOfTransform
That actually calls the Variation's FadeNow method, so it uses the Variation's fade out settings and it does not change the volume of the Sound Group at all.
So let me know what you want to do.
|
|
cuzer
New Member
Posts: 31
Posts: 31
|
Post by cuzer on Jul 13, 2015 6:50:30 GMT
Thanks for the reply. That might work, because I can fade it out to zero in x secs., stop it, and then raise it again to 1, while using the group fader for manual control.
|
|
|
Post by DarkTonic Dev on Jul 13, 2015 15:29:24 GMT
No problem.
|
|