커뮤니티 Q&A

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

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

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

0 투표

Not sure I'm even asking this right. My programmer knows nothing of Wwise, so it's up to me to integrate it with Unity. I don't know what HE needs to do to make Unity speak to Wwise. I installed the integration package, created a sound, made an event, and generated a soundbank.

Does the Unity script that calls my event need to have the event name in there? I'm assuming that's how it works. What line of code does it need to be, cuz I think that's the problem, my programmer has the wrong "type" of code in there, or whatever. Does this make sense to anyone?

This is the script that calls for sound right now:

void PlayOpenSound(){
              audioSource.Play();

What do I need to do with this?

General Discussion Andy B. (270 포인트) 로 부터
I checked that folder (it's Android for me), and the bank files are there:

Init.bnk
PluginInfo
SoundbanksInfo
Subverses.bnk

I was taught that the soundbanks path needed to be something like this: Unity/assets/streaming assets/audio/generatedsoundbanks/android/english

has that changed?
You still need to generate the SoundBanks for the Editor platform (if you are running the Mac Unity Editor, generate for Mac, and same for Windows).

The path you gave me is correct, this is there the code will look for them.
THAT DID IT!! Thanks a ton. Can I keep you on retainer? I'm sure I will need more help.

1 답변

0 투표

The simplest way to play a sound using the integration is to use the Wwise picker and drag & drop SoundBanks and Events to Unity GameObjects. See this tutorial for more information: https://www.youtube.com/watch?v=-VuXKTsG3Uc

If you need to post an event from a script, this is the simplest way to do it:

AkSoundEngine.PostEvent("Footstep", gameObject);

Make sure the SoundBank containing the event is loaded, though!

If you need a more precise answer, feel free to let me know!

Benoit S. (Audiokinetic) (16.0k 포인트) 로 부터
I followed that video and ended up with a couple major errors in Unity.

WwiseUnity: Failed load Init.bnk with result: AK_FileNotFound
UnityEngine.Debug:LogError(Object)
AkInitializer:Awake() (at Assets/Wwise/Deployment/Components/AkInitializer.cs:169)

and  

Wwise: Bank Subverses failed to load (AK_FileNotFound)
UnityEngine.Debug:LogWarning(Object)
AkBankHandle:LoadBank() (at Assets/Wwise/Deployment/Components/AkBankManager.cs:43)
AkBankManager:LoadBank(String) (at Assets/Wwise/Deployment/Components/AkBankManager.cs:108)
AkBank:HandleEvent(GameObject) (at Assets/Wwise/Deployment/Components/AkBank.cs:55)
AkUnityEventHandler:Awake() (at Assets/Wwise/Deployment/Components/AkUnityEventHandler.cs:39)
AkBank:Awake() (at Assets/Wwise/Deployment/Components/AkBank.cs:30)
It seems the banks cannot be found. Can you double check you generated your SoundBanks? In a Windows Explorer (or Finder) window, browse to your Wwise Project, and check the GeneratedSoundBanks folder. In that folder, you should see a folder named after your platform (Windows or Mac), each containing some .bnk files. Are they there?

If there is nothing there, make sure to generate your SoundBanks. In Wwise, go to Layouts > SoundBanks, and generate all your SoundBanks for your platform.
So, what do I do with the "footstep" script, exactly? add it to some existing script that controls the action of the character? or make a whole new script just for the footsteps?
Using key input to call wwise events in unity
...