Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes
Hello !

 

I'm a student in video game design and I'm trying to add sound to a Unity project using Wwise. It's my first time using the software and I didn't have any lecture on it.

I only have a small issue in managing the volume of the SFX/musics, as I don't find any function (in C# script) allowing me to change the volume of an event. I've found a function called SetOutputVolume in AkSoundEngine but I don't know how to use it. What is the in_idOutput, and how can I know what to put in there ?

 

Thanks a lot,

Jaxon
in General Discussion by Jason C. (130 points)

1 Answer

0 votes
 
Best answer
Hey Jaxon. I would make an RTPC in Wwise, assign the Voice volume of your container to that RTPC and then set it using a Wwise-Type RTPC.

Something like...
public AK.Wwise.RTPC volume;
volume.SetGlobalValue(volumeLevel);

If you want to see an example, check out the Wwise Adventure Game in the Launcher and open the Menu.cs script.
by Mads Maretty S. (Audiokinetic) (40.1k points)
selected by Mads Maretty S. (Audiokinetic)
Okay, I think I will try that.
Thanks for the answer
...