커뮤니티 Q&A

Audiokinetic의 커뮤니티 Q&A 포럼에 오신 것을 환영합니다. 이 포럼은 Wwise와 Strata 사용자들이 서로 도움을 주는 곳입니다. Audiokinetic의 직접적인 도움을 얻으려면 지원 티켓 페이지를 사용하세요. 버그를 보고하려면 Audiokinetic 런처에서 Bug Report 옵션을 사용하세요. (Q&A 포럼에 제출된 버그 보고는 거절됩니다. 전용 Bug Report 시스템을 사용하면 보고 내용이 담당자에게 정확히 전달되어 문제 해결 가능성이 크게 높아집니다.)<segment 6493>

빠르고 정확한 답변을 얻으려면 질문을 올릴 때 다음 팁을 참고하세요.

  • 구체적인 내용을 적어주세요: 무엇을 하려는지, 혹은 어떤 특정 문제에 부딪혔는지 설명하세요.
  • 핵심 정보를 포함하세요: Wwise와 게임 엔진 버전, 운영체제 등 관련 정보를 함께 제공하세요.
  • 시도한 방법들을 알려주세요: 문제 해결을 위해 이미 어떤 단계를 시도해봤는지 설명해주세요.
  • 객관적인 사실에 초점을 맞추세요: 문제의 기술적 사실을 중심으로 설명하세요. 문제에 집중할수록 다른 사람들이 더 빠르게 해결책을 찾을 수 있습니다.

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.
General Discussion Robert (390 포인트) 로 부터
수정 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".
Alexandre L. (Audiokinetic) (1.5k 포인트) 로 부터
선택됨 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.
...