커뮤니티 Q&A

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

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

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

0 투표
Hi Wwise Community.

We're having a strange issue where we're hearing a small pop / click during transitions between scenes on our music and ambience channels.

Any suggestions / thoughts on what might be causing it and any solutions? I'm not seeing anything strange in the profiler.

Thanks
General Discussion Justin F. (110 포인트) 로 부터
수정 Justin F. 로 부터

1 답변

0 투표
Hey Justin

Does this happen when you build your project, or only in the editor?
Are you using Unity?

Kind Regards
Tobias
Tobias D. Nielsen (2.5k 포인트) 로 부터
Hey Tobias,

Thanks for responding to my question. Yes, it happens in both builds and in the editor and we're using Unity 2018.2.2f1

Thanks
Hey, I just encountered this, and after a day of debugging, I -think- I figured out what it was.

For me it seems to be related to changes in Listeners.  check the following in your project:

1) Is there ever a situation where you have more than 1 AkAudioListener anywhere? most likely culprit is if you have two scenes you are switching between, the camera objects on each scene probably both have AkAudioListener components.  When the second scene is activated while the first is still active for a second, that could be causing the pop.

2) If you are doing anything with listeners programatically, check for change to AkAudioListener.SetDefaultListener().   


I have weird listener positioning needs in the project I am working on, so I chose to create a new gameobject decoupled from the camera, attach the AkAudioListener to that, and then call DontDestroyOnLoad() on that object so it persists between scenes.

And yea, I will note that nothing ever looked weird in the profiler during the pop that happened.
Are there any other suggestions for solving this?  I have the same issue and it seems to be caused by a momentary overlap of ak listeners on loading a new scene.  It doesn’t always happen but often causes a pop on some scenes.  Even though it does stop the pop, it isn’t really practical to make a persistent/donotdestroy object with the ak listener on in my project because it needs to be attached to the main scene cameras in each scene.
Same problem too! How can I solve this problem if I need to attach the AkAudioListener to each camera in the scenes of my project?

How can I change to AkAudioListener.SetDefaultListener(), in which script, can you be more detailed ?
I haven't found a better way, my solution was to:

1. remove any AK listener components from all cameras in the editor.

2. programmatically, create a new game object with a new listener and have it follow/move with the active camera. I set this object to be "do not destroy"

3. When scene changes happen, I wrote code that iterates through any listeners in the scene, and disables all of them from being the active listener except the one I manually created. I.e. call SetDefaultListener(false).

4. In wwise unity global settings, you can turn off the "automatically attach listeners to cameras" setting.



Sorry, I wish there was a better way. As far as I can tell, the "pop" is actually when, for a split second, during a scene switch, two listeners are active (one for the old camera about to be deleted, one for the new camera being loaded). The two listeners seems to cause the audio to be rendered twice, resulting in a momentary volume doubling effect. That's what the pop is. The only way I found to prevent it is to never let the situation occur where there are more than 1 default listeners active.

It would be nice if wwise had a better way to deal with this, because it's a really tough problem to diagnose why it's happening. And you'd expect something as common as scene changes to be handled out of the box more gracefully.
太牛逼了,你这句话帮到我了,感谢大佬
“The two listeners seems to cause the audio to be rendered twice, resulting in a momentary volume doubling effect.”
...