Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

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 (180 points)
...