menu
 

La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

+1 vote

Hi,

I'm trying to use the PrepareEvent calls to load individual sounds when needed to avoid making hundreds of tiny SoundBanks.  At this point I'm fairly certain I'm handling the API calls correctly, as the Wwise profiler shows that it is trying to load the correct file, but it fails with a "Cannot open file" error.  I understand that to use PrepareEvent, the media needs to be excluded from the banks that have the metadata. The information on how to do this in the documentation is a bit scattered around, so please let me know if I missed something.

-I allocated a 16MB (more than enough for this one file I'm testing with) pool for prepared events

-I excluded the media from said bank, and copied it to the Bank directory that is included in the game.

-I (just in case) set the audiosrc path to the bank directory, even though i don't think that was necessary

-I loaded the bank with the relevant metadata successfully.  I've tried using both LoadBank and PrepareBank(Structure_Only)

-I called PrepareEvent with an array of 2 events, "ambience_bathroom_play" and "ambience_bathroom_stop". 

-Wwise fails this claiming "Cannot open file <fileID>"

-The .wem file it is looking for is sitting in the banks folder along with the parent bank I loaded earlier

-The xml doc shows this fileID corresponds to ambience_bathroom.wav, so it is looking for the correct media

Is there another step I may have missed.  I've read through all the relevant material on Preparing Events and saw nothing about how to specify where Wwise should be looking for the loose media, but everything looks like it is where it should be.

Thanks

liée à une réponse: PrepareEvent fails to load media
dans General Discussion par Miles F. (250 points)

2 Réponses

0 votes
This problem still exists now
par Kang C. (150 points)
0 votes
我也遇到了这个报错,是不是原来有同名的bank.asset,我删除了原有的同名bank.asset后,重新生成就不再报错了
par 同学 (140 points)
...