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.