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

When loading a soundBank from the generated static uint in the header file the result is FileNotFound.

When loading the soundBank by name it works fine.

 

//Example


Debug.Log(AkSoundEngine.LoadBank(AK.BANKS.ENVIRONMENTS_GLOBAL, AkSoundEngine.AK_DEFAULT_POOL_ID));

// ^^^ Outputs AK_FileNotFound


uint bankId;
Debug.Log(AkSoundEngine.LoadBank("ENVIRONMENTS_GLOBAL", AkSoundEngine.AK_DEFAULT_POOL_ID, out bankId));

// ^^^ Outputs AK_Success

in General Discussion by Luke M. (130 points)
Having the same issue. Haven't been able to load bank referencing the uint (ie: AK class). Always have to reference the "name" with output of the id.

Example of triggering and storing out music gameobject below:

    private void Start ()
    {
        //initialize music
        _music = new GameObject("Music");
        PlayEvent("Music", AK.EVENTS.PLAY_MUSIC, _music);

        DontDestroyOnLoad(_music);
    }

    public void PlayEvent(string inBank, uint inEvent, GameObject inGameObject)
    {
        uint bankID; // Not used
        AkSoundEngine.LoadBank(inBank + ".bnk", AkSoundEngine.AK_DEFAULT_POOL_ID, out bankID );
        AkSoundEngine.PostEvent(inEvent, inGameObject);
    }

1 Answer

0 votes
If you wish to use IDs to access your SoundBanks, you need to set an option in the Wwise Project Settings, under the SoundBanks tab. You will need to uncheck "Use SoundBank names". Upon doing so, you will not be able to access your banks by name.

Basically, you only have one way to access your banks - by name or by ID. You can't access them using both ways at the same time.

For more information on using bank names versus IDs, you can refer to the Wwise SDK documentation, under Sound Engine Integration Walkthrough » Integrate Wwise Elements into Your Game » Integrating Banks » Integration Details - Banks » General Information.
by Benoit S. (Audiokinetic) (16.0k points)
...