Frictional Games Forum (read-only)
[SCRIPT] Making one sound take over another? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Making one sound take over another? (/thread-22283.html)



Making one sound take over another? - Linus Ågren - 07-30-2013

Well, I am having a little issue regarding some voice acting and my actual map. There is a lot of noise on the map (explosions, crumbling walls etc) and that is making the voice acting unheard.

To the point: Is there anyway to make the voice-acting kind of "take-over" the other sounds, like making them all lower while he speaks, or make the actual sound of him go more in the front so it is clear what he says?

Thanks!


RE: Making one sound take over another? - Kullin - 07-30-2013

The only thing I can think of is either lower the volume of one of them in the .SNT and set the other's volume higher .SNT, maybe? Do you understand what i mean?


RE: Making one sound take over another? - Linus Ågren - 07-30-2013

(07-30-2013, 06:37 PM)Kullin Wrote: The only thing I can think of is either lower the volume of one of them in the .SNT and set the other's volume higher .SNT, maybe? Do you understand what i mean?

Absolutely, but I would like to avoid that since there are like 10 different sounds and in that case, I would need to swap them out each time the voicing comes in. =/


RE: Making one sound take over another? - Kullin - 07-30-2013

FadeInSound(string& asSoundName, float afFadeTime, bool abPlayStart);
Fades in a sound.
asSoundName - internal name
afFadeTime - time in seconds
abPlayStart - ?


Maybe don't really know


RE: Making one sound take over another? - Artyom - 07-30-2013

All you need to know is on the wiki, go there.


RE: Making one sound take over another? - Linus Ågren - 07-30-2013

(07-30-2013, 08:21 PM)Zandrojakov Wrote: All you need to know is on the wiki, go there.

Could you please push me in the right direction there then?
I cannot find anything that meets my requirements. Confused

The only close thing I found was FadeGlobalSoundVolume, but that will not work since it will lower ALL sounds.

Edit: I had to make an emergency solution. Though, if anybody knows this, please reply!