menu
 

La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

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
dans General Discussion par Jason C. (130 points)

1 Réponse

0 votes
 
Meilleure réponse
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.
par Mads Maretty S. (Audiokinetic) (40.2k points)
sélectionné par Mads Maretty S. (Audiokinetic)
Okay, I think I will try that.
Thanks for the answer
...