Please note that we will be performing routine server maintenance on November 23rd. Your experience may be temporarily limited on the Audiokinetic website and Wwise Launcher for a period of 48 hours.

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. Contact Sales if your project requires a support plan.

File not found playing external source in Unity

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?
asked Jan 23 in General Discussion by Kurt H. (100 points)

Please sign-in or register to answer this question.

...