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.

0 votes
This is in Unity 2017.1.2f1 using Wwise 2017.1.3.

I'm trying to get an external sound to play in Unity, however I get an error when I try to play it: "Wwise: File not found: test.mem"

My Project Settings has the input path set up for all of my files to ExternalSources.wsources, which is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<ExternalSourcesList SchemaVersion="1" Root="ExternalSources">
    <Source Path="test.wav" Conversion="PCM"/>
</ExternalSourcesList>

The output path is set to the StreamingAssets\Audio\GeneratedSoundBanks\Windows\ folder of my Unity project, and I see that test.mem file is present in that folder after generating soundbanks.

The following is the code I'm using to play the sound:
            AkExternalSourceInfo source = new AkExternalSourceInfo();
            source.iExternalSrcCookie = AkSoundEngine.GetIDFromString("External_Source");
            source.szFile = "test.mem";
            source.idCodec = AkSoundEngine.AKCODECID_PCM;
            AkSoundEngine.PostEvent("Play_Voice", gameObject, 0, null, null, 1, source);

The sound bank is loaded in and the Play_Voice event is happening, but it is throwing an error on finding the test.mem file.

Is there something wrong with my setup? Where is it looking for the test.mem file?
in General Discussion by Kurt H. (100 points)

1 Answer

+1 vote

Maybe it should be "test.wem", not "test.mem"?

by Denny S. (180 points)
...