Please be advised that the Audiokinetic offices will close at 3:00 p.m. EST on December 23rd, 2019 for the holiday period, and will reopen on January 3rd, 2020 at 9:00 a.m. EST. Learn more.

Community Q&A

Where Wwise users help each other out!

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

PrepareEvent cannot open loose media files

+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

related to an answer for: PrepareEvent fails to load media
asked Feb 26, 2016 in General Discussion by Miles F. (250 points)

1 Answer

0 votes
This problem still exists now
answered Nov 21 by Kang C. (150 points)
...