menu
 

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

0 投票
Hello,

Sorry if this is a double post, but couldn't find my previous post on this. I'm trying to make a sort of rhythm machine in Unity and I'd like the sound to trigger on beat when the player presses a button.

Right now I'm using stingers for this which works pretty well, however, I'd like the sound to cut itself off and repeat if the player presses the button twice and the sound's still playing from the last press. It seems I am unable to have the singer do this.

Is there another way to play the sound so that it can cut itself off and repeat in sync with the music? If I were playing the sound direction from an event action, I could just cut it off, but it seems stingers don't work that way.

Thanks!
分类:General Discussion | 用户: David M. (150 分)

1个回答

0 投票
Cant you add a 'stop' event to the stinger event ? I think if you triggered the stop event before a play event for the same sound, it would cut the currently playing event and then immediately trigger again ? Wouldnt you just have to put the stop event before the play in the hiearchy ?
用户: damon i. (890 分)
Hmm. I tried using a stop action in the event, but it won't stop a stinger, only a play action.

I found a way to do it where I limit it to one voice in the sound set where the stinger sounds are. But there's now some delay even when I turn on sreaming. That's a different issue though.  Thanks for the suggestion.
...