커뮤니티 Q&A

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

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

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

0 투표

Hi guys,

I have some questions regarding scene changes in Unity.

The first is: What is the best practice to ensure that sounds are being stopped when changing scene?
When I change scene, I often get the log message in the Wwise profiler that "Sound with positioning enabled is not attached to any listener, will use virtual voice setting."
And then if virtual voice settings is not kill, then it will not be stopped even though that the game object associated with that voice in Unity has actually been destroyed.

The second is: If I actually want some sound to continue across scene changes (without interruption) how do I do that?
Do I have to associate that sound with a separate listener, that is not destroyed on scene changes?

The third is: How do I handle loading/unloading of soundbanks when changing scene if the same sound bank is used in both scenes?
I understand that ideally you would not unload a sound bank on Destroy in the previous scene if you want to use it in the next one, but then you would need some bigger system keeping track on which sound banks are used in which scenes. And it seems that right now that if the bank is asked to be unloaded on Destroy in the previous scene and loaded on Awake or Start in the next scene, then the new load request will actually come before the bank is fully unloaded. This results in that Wwise will say that the bank is already loaded after which the bank will complete its unload request from the previous scene which in turn means that the bank is not loaded when the events using it are triggered. The funny thing is that Wwise will not say that the bank is already loaded in the new scene if I don't give it the unload request on Destroy in the previous one...

Sorry for this bulk of questions at the same time, but I feel that they are related and that it somehow makes sense to ask them together.

Best, Jakob

General Discussion Jakob Hougaard Andersen (180 포인트) 로 부터

1 답변

+1 투표

Hey Jakob,
I'll try to make it short. 

What is the best practice to ensure that sounds are being stopped when changing scene?
Make sure the SoundBank for that scene is stopped on Destroy and then all sounds related to that SoundBank should be stopped on destroy as well. But it sounds like you've got that covered. 

If I actually want some sound to continue across scene changes (without interruption) how do I do that?
- Have you checked out Media Relocation? As long as you've loaded a second SoundBank with that sound in it as well, you can just re-parent the game object you posted it on into the new scene, and it will continue playing despite unloading the first SoundBank. 

How do I handle loading/unloading of soundbanks when changing scene if the same sound bank is used in both scenes?
- I would probably have a new SoundBank for each scene instead of using one SoundBank for multiple, so that the audio is separated just like the game is structured. If you have to load the same SoundBank in a new scene, you might want to make a custom system that loads the SoundBanks and keeps track of them. Like a manager, that loads / unloads the SoundBanks, but only if it receives a new SoundBank request from a scene. 

Have you tried Wwise Adventure Game? If not, you should try download it from the Wwise Launcher and see if that method is anything that fits into your game. If it does fit, it's always a good reference sheet if you head into problems in your own game, or if you want to test something before you do the actual implementation in your game. 

Hope this helps! 

Mads Maretty S. (Audiokinetic) (40.2k 포인트) 로 부터
Hi Mads
Thanks for your answer.
I will check out Wwise Adventure Game.
...