社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

0 投票
So the idea is we have a hand throttle that controls a vehicle.  When you move it forward or backwards, you hear a clicking loop, when you don't move it, the loop doesn't play.  There are a few gears, and each time you go past a gear, you can hear a different clack sound.  When you go into Park, there is a different clack sound to indicate it is parking.

 

From the programmers perspective, he is just making one event play with a parameter "Throttle" that goes from -0.5 to 1.0.  We hear ratcheting sounds for changing value.  But we also hear shifting sounds (like, a one-shot thicker sounding click) as you shift between gears, and he wants this to happen at 0.875, 0.625, 0.375, 0.125, -0.125, and -0.375.  Shifting to park makes a special sound (it would be between -0.125 and 0.125).

Is this possible with Wwise?  I get the sense this is not the way to implement this sound, as I cannot seem to find a way to do this... or am I wrong?  Our programmer seems to think this is the best way.
分类:General Discussion | 用户: Soundy McSound (230 分)

1个回答

+1 投票

Okay, here's one way you could do this.

 

Game Syncs Tab (Screenshot: Game Syncs)

You will need a switch group. I'm going to call it SG_Gears. It will have 7 switches for each of your gears including park, and you need to check "Use Game Parameter" in the Switch Group Property Editor. Choose "Throttle" as the game parameter to use in the bottom right of the same editor pane. Now create points on the parameter graph that correspond with the gear changes you want to make.

 

Audio Tab (Screenshot: Switch Container, Sequence Container)

At the top, you will need a Switch Container. In the Switch Container Property Editor, set the play mode to continuous. Set the switch group to "SG_Gears" and set the default switch to whatever gear your player starts in.

The switch container will have 7 Sequence Containers as its children that correspond to your 6 gears + park. Set each sequence container's play mode to continuous as well.

Each sequence container will have two Sound SFX objects as their children: one with your gear switching sound, and one with Wwise Silence (or just a .wav of digital silence). The silence objects should all loop infinitely (set in the Sound Property Editor). 

Back in the sequence containers, set each container's playlist so that the gear switching sfx plays and then the looping silence plays.

Back in the switch container, assign the sequence container objects to the correct switches in the assigned objects pane. 

Now add an event action to the event that starts the car engine so that it also starts the switch container we just created. When the RTPC gets updated, the RTPC will set the proper switch, play the correct sound, then start looping silence until it gets another set switch call from the RTPC.

---

I tested all this in the authoring tool just now, so I'm sure it works. Let me know if you have any trouble.

用户: Ian S. (2.1k 分)
修改于 用户:Ian S.
Ian, fyi, I've used https://postimage.io/ for links to images.
Aha! Thanks, I updated the post.
Wow, thanks a lot for this.  I am going to try it out.  I tried something similar to this, but gave up after the sounds were getting cut out.  But I see you've implemented it a lot differently than I did, the only similarity being that we used switches to play sounds... I was using longer sounds too, and they'd cancel out once you got to the next switch.

Anyways thanks a lot for the info.  I will test it out tomorrow and let you know if it worked on my end!
Did you have any luck?
Well, we ended up implementing this differently.  My programmer changed it before I could get back to him, but the way he implemented it was super simple.  We just have a single play event for every click, a single play event for a shift down, one for shift up, and one for park.  Honestly, it's a lot more simple this way.  

However, what you've helped me with here will probably be used elsewhere in slightly different ways.  I still am going to try this out in Wwise and see how it works.  Been too busy as of yet to get it done, but will test it out soon and let you know how it goes.
Nice! Glad you got it figured out!
...