커뮤니티 Q&A

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

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

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

0 투표
Hello,
I have a doubt about the use of "Languages" in Wwise:
Can we switch between one language or another when we are in the game? If so, I can't find a way to do it.
Or are the languages reserved for Builds?

Also, if that is not possible in-game. Do you have any idea how to get there?

Thank you

Théophile Demarcq
General Discussion Théophile Demarcq (1.9k 포인트) 로 부터
I raise this question again

In the game I'm working on, the default language is English and I would like when you press a button to switch the game to French.

Can this be done in-game with a Switch?
Should I reload the soundbank and restart the game? And if so, how ?

Has anyone been faced with this problem before and can help me or give me some leads to find?

Thank you

Théophile
I noticed that if we changed the Startup Language in Unity it worked (after 2 reloads).

https://www.dropbox.com/s/g8zrovo9tlc7c8f/Capture%20d%E2%80%99%C3%A9cran%202021-03-01%20%C3%A0%2015.47.02.png?dl=0

Is this where we have to dig to find the solution?

Is it with that? --->
AkSoundEngine.SetCurrentLanguage (newLangName)

Thank you

3 답변

0 투표
 
우수 답변
Hi everybody,

I am relaunching this subject because I still have not managed to resolve it. I would like to change the language in the game. I do this manipulation, but it doesn't work. Do you have an idea ? :

  - AkSoundEngine.StopAll (); // Stop all Sounds
  - AkBankManager.UnloadBank (bankName); // Unload the soundbank
  - AkSoundEngine.SetCurrentLanguage (newLangName); // Change the Language
  - Wait a few secondes ...
  - AkBankManager.LoadBank (bankName); // Load the new soundbank

Is there anything else to do? Something to configure?

Thank you very much

Théophile Demarcq
Théophile Demarcq (1.9k 포인트) 로 부터
선택됨 Théophile Demarcq 로 부터
0 투표
Hello,

I just found a bug where changing the language didn't work. Symptoms: the soundbank does not unload (it does not appear unloaded in the Profiler). This was due to the fact that the soundbank launch was in a Unity prefab and was loading multiple times ... Solution -> it had to be unloaded multiple times !! (even if it only appeared once in the profiler). Then do the manipulation to change the language and restart the soundbank
I don't know if that can help you ...
Théophile Demarcq (1.9k 포인트) 로 부터
0 투표

I went through a similar issue. I've partially used the Answer by Théophile Demarcq (below) but with some edits. This solution seems to work perfectly. I've implemented this in Unity (I didn't test it on other game engines).

  1. I created a setCurrentLanguage() function

    private IEnumerator setCurrentLanguage(string language)
    {
    AkBankManager.UnloadBank ("Soundbank_Name"); // Unload the soundbank
    yield return new WaitForSeconds(0.5f); // Wait to allow the sound engine to unload the bank. Edit the waiting time according to the time the engine needs to load the soundbank
    AkSoundEngine.SetCurrentLanguage ("Language_Name"); // Change the Language
    yield return new WaitForSeconds(0.5f); // Wait to allow the sound engine to load the bank. Edit the waiting time according to the time the engine needs to load the soundbank
    AkBankManager.LoadBank ("Soundbank_Name", true, true); // Load the new soundbank
    }
  2. And then I called it in a StartCoroutine: 
    StartCoroutine(setCurrentLanguage(language));

I hope it helps! Maybe there is a more efficient way of doing it?

Balandino Di Donato (580 포인트) 로 부터
...