Audiokinetic의 커뮤니티 Q&A는 사용자가 Wwise와 Strata 커뮤니티 내에서 서로 질문과 답변을 하는 포럼입니다. Audiokinetic의 기술 지원팀에게 문의하고 싶으신 경우 지원 티켓 페이지를 사용해주세요.

Way to lower priority of game object during its playback for long-tailed sounds

0 투표

I'd like to seek advice on a scheme of lowering priority of a game object during playback which I'd like to use in my game.

 
The idea is, I think it would be great for long-tailed sounds (weapon shots, explosions) to change their priority while their tail (volume) is gradually decreasing. But with the condition that priority offset at distance for these objects is also working.
 
Since there is such a probability like “set game parameter” in event actions and the possibility to change priority of the sound with RTPC, I have constructed the next scheme:
 
first – RTPC game parameter to change priority of a sound
and second – an event with the next three consecutive actions:
1 - reset game parameter (to restore priority of a game object after a previous “set game parameter” action)
2 - play shot sound (with slight action delay, e.g., 0.01 sec)
3 - set priority parameter (with fade in time to lower absolute value and also with action delay, slightly bigger than previous, e.g., 0.1 sec)
 
And my question is, is this scheme is a correct solution for my idea or maybe I have a mistake somewhere? I have tested it in Soundcaster and everything worked correctly, but who knows, maybe there are some pitfalls.
 
I guess I can also use a side-chain function with RTPC driven by weapon shot peak meter for more accurate values, but the main question is the cooperation of reset and set game parameter actions with distance offset and, the reasonableness of the whole scheme.
문의 2013 5월 19 General Discussion Robert (390 포인트) 로 부터
수정 2013 5월 22 Bernard R. (Audiokinetic) 로 부터

1 답변

0 투표
 
우수 답변
It could be working, but there are some potential issues with driving priority with RTPC this way.

The RTPC value is per game object and not per sound instance, meaning that if you have the same game object playing an old and a new sound of the same type, both will be bound to the same priority value. Still it will work if you reset the RTPC at every playback but some old sound will be preserved with high priority if the same game object is playing new sounds. There could be a worst case scenario when a game object is playing a lot of sounds, but since a game object has same position all the time, sounds will have same distance priority offset and you should then specify in the priority options "when priority is equal, discard oldest sound".
답변 2013 5월 22 Alexandre L. (Audiokinetic) (1,520 포인트) 로 부터
선택됨 2013 7월 24 Robert 로 부터
Thank you for your comment, Alexandre.
Of course I will be using the options ""when priority is equal, discard oldest sound", I forgot to write about that.
I am a little bit confused with this your sentence: “Still it will work if you reset the RTPC at every playback but some old sound will be preserved with high priority if the same game object is playing new sounds.”
Could you explain it in more detail? I thought if I will use the action “gradually lower priority” and “reset previous priority” for each new sound than it will has bigger priority value than an old one.
RTPC values are per game object and not per sound instance.
for example, you have two characters walking around you in the level. each character is a game object.

The sound they are playing are footsteps. they are at similar distance from listener.
time 1: character 1 plays footstep first instance
time 2: character 2 plays footstep second instance
time 3: character 1 plays footstep third instance

We have 3 sounds palying, the first sound started to fade out, but since sound 3 was on same game object as sound 1, sound 3 will have the same priority RTPC offset as sound 1 since they both share the same game object, therefore soudn 2 will have lowest priority in your system.
Oh, now I understand, thanks a lot!
And because RTPC is per game object, sound 3 in your example will kill not sound 1 but sound 2, if there would be playback limit.
But, I guess it is not such a scary scenario in case if those two objects are using similar sounds.
...