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.

+5 votes
In the Unity integrations, Mac platform specific code is prepended by the following:

#if (UNITY_STANDALONE_OSX && !UNITY_EDITOR) || UNITY_EDITOR_OSX

Whereas Linux specific code is prepended by:

#if UNITY_STANDALONE_LINUX && ! UNITY_EDITOR

This causes the project to be un-editable in editor on Linux and throw errors!
closed as a duplicate of: Support on Unity Linux Editor
in General Discussion by T C. (180 points)
closed by Samuel L. (Audiokinetic)
I'm busy figuring some of this out, hopefully I can leave some advice to anyone else trying to use Wwise on Linux using Unity. Following an email with the support team, this is not actually supported, some don't hold your breath on getting full features working without some work. I am at least at the stage where I can make builds on Linux which can play audio using the Wwise SDK - though I'm still figuring out how to get audio working in the Editor.

Following the discussion of Linux users of another game (Polyball) - it occurred to me that there was still some linking issue with libSDL even though I installed it. Not sure if its a wrong version or perhaps a 32 bit vs 64 bit issue. Here's the thread https://steamcommunity.com/app/368180/discussions/0/133259227521120753/?ctp=2

My solution to get audio working on Linux and get around the error "AkInitializer.cs Awake() was not executed yet" was simply to link to the libSDL that is provided along with steam (even though I'm not using steam currently). My library was located here ~/.steam/steam/ubuntu12_64/libSDL2-2.0.so.0

You can load it using LD_PRELOAD when launching your game, or you can simply copy it into the [GAME_NAME]_Data/Plugins directory.

However, to even get it building on linux, you need to fix a few issues including the one you mentioned. Throughout all those Linux classes you are looking at in Deployment/API/Generated/Linux, you need to change the existing #if statements to:

#if (UNITY_STANDALONE_LINUX && ! UNITY_EDITOR) || UNITY_EDITOR_LINUX

Furthermore, I had to Deployment/API/Handwritten/Common/WAAPI and disable those classes on Linux using:

#if UNITY_EDITOR && !UNITY_EDITOR_LINUX

Besides that, there was an errorMessage variable in AkWwisePicker that needed to be initialized on Linux.

After that, you can hopefully build on Linux and have a playable that has audio. Still figuring out how to get audio working in the editor.

2 Answers

0 votes
I have the same issue, why support team don't respond questions related with this issue?
by Antonio R. (240 points)
0 votes
 
Best answer

The Unity Editor on Linux is not a supported target by our Unity integration at this time.
Linux, while supported as a runtime target, is also not a supported authoring environment.

We encourage studios and users who wish to see the Unity Linux editor to become officially supported to report it to us as a feature request to help us prioritize. 

The most up-to-date information related to targeting Linux on Unity with Wwise can be found at this address: https://www.audiokinetic.com/library/edge/?source=Unity&id=pg_howtobuilddeploylinux.html

by Samuel L. (Audiokinetic) (23.6k points)
...