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.

+3 votes

Hello,

When I'm Built in Unity I have this Error :

IOException: Sharing violation on path D:\Projets Unity\Blablabla\Assets\StreamingAssets\Audio\GeneratedSoundBanks\Windows\DecodedBanks.meta" or "D:\Projets Unity\Blablabla\Assets\StreamingAssets\Audio\GeneratedSoundBanks\Windows\DecodedBanks.meta

I searched but I can not find a useful answer to this problem.
So, it's impossible to built.

Any ideas ?

Thank you,

Theophile Demarcq

in General Discussion by Théophile Demarcq (1.9k points)

2 Answers

0 votes
 
Best answer

I also have the same issue, using Wwise 2019.1.4 - Unity 2019.2.9f1

I think it's related to the fact that both, source and destination paths for banks generation are the same (StreamingAssets/Audio/[PlatformName])

I made a quick fix to solve this issue, within the AKBuildPostProcessor.cs file, but it's not ideal.

Check this PasteBin: https://pastebin.com/DKzeb5x6

by Raúl Emmanuel I. (820 points)
selected by Théophile Demarcq
+1 vote

Ok, we had the same problem today, and the other answer here isn't really the solution...

This exception happens because the SoundBanks path(s) inside Wwise is set to the StreamingAssets folder inside Unity, which is where they get copied on build.

So I discovered two things which are not very clear from the docs:

  • SoundBanks path(s) inside Wwise can be outside the Unity project (even better because this way the Unity Editor doesn't have to track unnecessary files), and all the sounds still work in the Editor.
  • SoundBanks path(s) inside Wwise should be outside of Unity's StreamingAssets folder if you have checked the option in Unity Project Settings > Wwise Editor > Asset Management > Copy SoundBanks at pre-Build step, because this way Wwise copies the SBs from the generation folder to the StreamingAssets, and it only copies the necessary platform, which is being built, so in this case the two folders are the same so the exception is thrown.
by Xriuk (250 points)
This is the solution. We were having the exact same problem and your post gave us clarity as to the root of the issue as well as pointing to the solution - many thanks!
...