Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

how to loadbank in unreal (v2022.1.1)

+4 votes
2023.01.29-09.20.58:133][241]LogWwiseFileHandler: Error: IO Hook doesn't support opening by Name: New_SoundBank.bnk
[2023.01.29-09.20.58:133][241]LogWwiseFileHandler: Error: IO Hook doesn't support opening by Name: New_SoundBank.bnk
[2023.01.29-09.20.58:133][241]LogAkAudio: Warning: FAkAudioDevice::LoadBank: Failed to load bank New_SoundBank. The operation failed.
[2023.01.29-09.20.58:137][242]LogWwiseMonitor: Error: Cannot open file New_SoundBank.bnk in path(s):

but there has New_SoundBank
asked Jan 29 in General Discussion by 有有 (140 points)
You figure this out?
when I loadbank like this
UAkGameplayStatics::LoadBankByName("New_SoundBank.bnk");

1 Answer

0 votes

Have you defined the Generated Sound Banks Folder inside your Unreal Project Settings?

answered Feb 2 by Lukas P. (180 points)
yes,I have. like this " ../Occulmist_WwiseProject/GeneratedSoundBanks"
i met the same problem.
the code is:
    UAkGameplayStatics::LoadBankByName(FString("UI.bnk"));
    FOnAkPostEventCallback nullcallback;
    UAkGameplayStatics::PostEvent(nullptr, GetOwner(), int32(0), nullcallback, false, "fire");

the error is:
[2023.03.06-03.19.04:224][463]LogWwiseFileHandler: Error: IO Hook doesn't support opening by Name: UI.bnk
[2023.03.06-03.19.04:224][463]LogWwiseFileHandler: Error: IO Hook doesn't support opening by Name: UI.bnk
[2023.03.06-03.19.04:224][463]LogAkAudio: Warning: FAkAudioDevice::LoadBank: Failed to load bank UI.bnk. The operation failed.

when i packaged to exe, it print error log.
what is the right path, and how to packag exe rightly.
I have encountered the same issue and so far haven't found a solution.

My generated soundbanks folder in wwise and project settings in unreal match.
I've also tried giving an explicit path when attempting to load the bank and recieved the same error.

I'd like to add that "Cannot open file [..] in path(s):" and then NOT outputting the path it's trying to load is both incredibly unhelpful and very frustrating!
...