menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票
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
分类:General Discussion | 用户: Jason C. (130 分)

1个回答

0 投票
 
已采纳
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.
用户: Mads Maretty S. (Audiokinetic) (40.2k 分)
采纳于 用户:Mads Maretty S. (Audiokinetic)
Okay, I think I will try that.
Thanks for the answer
...