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. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Unity integration - No sound since Wwise updated to 2019.2.2 [closed]

0 votes
Hello !

I know it's one of the most common problems with Wwise and Unity, because I've seen a lot of threads about it, but none of them seem to resolve the issue I'm having.

I updated Wwise inside my Unity project to 2019.2.2, and since then I have no sound when entering play mode, nore when I build. My banks are up to date, loaded on awake, and all my events names and IDs match.

I get error messages when entering play mode, about Event IDs not found, and the selected node being not available, although they match the ones in the banks txt file.

I've tried relocating my generated banks to the streaming assets folder, but nothing changes..

Hope someone might be able to help me !
closed with the note: After deleting the full library and asking the bank to load on start and not on Awake, I get sound in play mode, and no error message ! Hurray :D
asked Jun 16 in General Discussion by Antonin T. (100 points)
closed Jun 18 by Mads Maretty S. (Audiokinetic)

2 Answers

0 votes
Hey Antonin,

Did you try deleting the SoundBanks along with the Wwise IDs and then generate new ones? And by the way, you shouldn't have to put them in the Streaming Assets folder anymore, cause the Wwise Unity Integration will just fetch the path to your SoundBanks from your Wwise project.

Other than that, you could try deleting the AkWwiseProjectData.asset file (don't have to close Unity for this), or the entire Library folder (close Unity first). You could also check that the Paths in the Project Settings > Wwise Editor is still OK.

Let us know how it goes!
answered Jun 16 by Mads Maretty S. (Audiokinetic) (4,820 points)
Thanks for getting back to me so fast !

I've tried everything you told me, one by one, but the error message remains.

Should I try something different ? Or do you need more info ?
Hmm... Could you do a quick search to see if there's more than one Wwise ID file?

Otherwise, I would probably start from scratch by creating a new scene, add 1x SoundBank + 1x Event, and use the profiler to see why it cannot find the event. You could also print (from a script) the ID of the Event you've selected, and compare that to your events in Wwise.  

If you don't get it to work, try adding an image of the error or copy / paste it in here.
Okay, I've created a new scene and tried what you said, adding a bank and a simple event, playing a sound on start. The error is the same, and the profiler doesn't give me much info, except that it says it receives a request to unload the bank right after loading it. The unload is set to "Nothing" on my AkBank object, so I don't know where the request comes from.

Here is the picture of the profiler log : https://drive.google.com/file/d/1hBmY57WMCIDntMX5kLNKrrJ6Ozml3VRF/view?usp=sharing

Am I missing something ?

[EDIT] After deleting the full library and asking the bank to load on start and not on Awake, I get sound in play mode, and no error message ! Hurray :D

I have no idea what gets in the way of loading it in Awake though
0 votes

Good to hear you've got it working! 

Yes there's an issue in Wwise 2019.2.2 with the AkBank unloading the SoundBank right away if you set it to load in Awake()

Usually a good practise is to load the SoundBank in Awake(), so you don't have trouble with other AkEvents set to play in Start() because of the Order of Execution in Unity.
Until a fix is released (very soon I believe), you could try using a custom SoundBank Wwise-type, by creating a quick script with a "public AK.Wwise.Bank BankToLoad;" property with "BankToLoad.Load(false);" in the Awake() function. This way you'll get a nice picker in the Inspector (like in the AkBank) where you can select the SoundBank, and it'll load in Awake(). 

Probably something like this...

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LoadBankInAwake : MonoBehaviour {

     public AK.Wwise.Bank BankToLoad;

     void Awake() {
          BankToLoad.Load(false); // 
     }

}

Consider unloading the SoundBank in OnDestroy()

I will close the issue since you found a solution. Good luck with your project! 

answered Jun 18 by Mads Maretty S. (Audiokinetic) (4,820 points)
...