Version
menu_open

Configuring user SoundBank settings

The SoundBank settings at the project level determine what is part of the generation process, how it is included, and in what format it is generated. See Defining the SoundBank settings for your project.

With User SoundBank Settings you can override the project settings. User settings are only available to you and only affect SoundBanks you generate.

Configuring user SoundBank general settings

To configure custom SoundBank user settings:

  1. On the SoundBank Manager toolbar, click the SoundBank Settings tool:

    If user overrides already exist, the tool has an orange background.

  2. From the menu, select User SoundBank Settings.

  3. In the SoundBanks tab, select Override Project SoundBank Settings.

  4. Select or deselect options to configure custom settings for your SoundBanks. For a reference to all of the settings, see SoundBanks Settings - SoundBanks Tab.

  5. Click OK. This applies the settings and they are used until you deselect Override Project SoundBank Settings.

Overriding project SoundBank paths

SoundBanks are saved in the location specified in the SoundBank Paths section of the SoundBanks Tab, but you can override that project setting with a user setting.

To override project SoundBank settings:

  1. On the SoundBank Manager toolbar, click the SoundBank Settings tool:

    If user overrides already exist, the tool has an orange background.

  2. From the menu, select User SoundBank Settings.

  3. In the SoundBanks tab, select Override Project SoundBank Settings.

  4. Select Override SoundBank Paths. For a reference to all of the parameters, see the SoundBank Paths section of the SoundBanks Settings - SoundBanks Tab.

  5. Click OK. This applies the settings and they are used until you deselect Override Project SoundBank Settings or Override SoundBank Paths.

Overriding the project pre-generation and post-generation steps

Depending on your workflow, you might have a certain step or task that needs to be performed immediately before or immediately following the generation of your SoundBanks. For example, you might want to check out specific SoundBank files from your source control system before generating them or you might want the streamed files to be copied to the SoundBanks directory immediately following generation. Although this information is usually configured at the project level, there might be circumstances where you will want to override it to configure your own custom settings.

In Wwise, these types of tasks are configured by creating command lines. A special command line editor exists within Wwise making it easy for you to build as many command lines as you need. To simplify the process even further, the editor contains a list of all the Wwise-specific and other Windows environmental variables that can be used in a command line.

[Note]Note

The build process might be interrupted if an external tool returns an error or cannot be found. This is accomplished by setting the corresponding log severity level to Fatal Error in the log settings. For more information, refer to Managing messages that appear in the logs.

When a custom Global opening step fails, the entire build process is interrupted and no SoundBanks are generated. On the other hand, when the failure occurs on a custom step for a specific platform, only that platform is skipped. However, the Global closing step will be skipped since part of the process wasn't successful. To be considered failing, an external process has to return a value other than zero.

The specific Wwise variables available for writing custom command lines are as follows:

Command Line Variable

Description

$(AllowExceedMaximum)

Specifies whether SoundBanks can be generated even if they exceed the maximum size specified.

This variable is set to true when the Allow SoundBanks to exceed maximum option is selected.

$(GenerateContentFile)

Specifies whether files that list the contents of each SoundBank are generated. The content files include information on Events, Busses, States, and Switches, as well as a complete list of streamed and in memory audio files.

This variable is set to true when the Generate SoundBank content files option is selected.

$(GenerateHeaderFile)

Specifies whether a header file is generated that maps Event, State, Switch, and Game Parameter names to IDs.

This variable is set to true when the Generate header file option is selected.

$(GenerateMaxAttenuationInfo)

Specifies whether the maximum attenuation information is generated for Events.

This variable is set to true when the Metadata Options: Max attenuationoption is selected.

$(GenerateEstimatedDuration)

Specifies whether the estimated maximum and minimum duration and duration type information is generated for Events.

This variable is set to true when the Metadata Options: Estimated Duration option is selected.

$(HeaderFileFullFilePath)

The full path of the header file, which is: $(HeaderFilePath)\Wwise_IDs.h.

$(HeaderFilePath)

The path or location where the header file will be saved.

This path is taken from the Header file path text box.

$(InfoFilePath)

The full file name of the current platform's Info file.

$(IsRunningFromCmdLine)

Specifies whether Wwise was launched from the command line with the "-generatesoundbanks" flag.

$(LanguageList)

The list of languages passed to the command line or the selected languages in the SoundBank Manager.

[Note]Note

The list is a space-separated list.

$(Platform)

The name of the current platform.

$(SoundBankList)

The list of SoundBanks passed to the command line OR the selected SoundBanks in the SoundBank Manager.

[Note]Note

The list is a space-separated list. Use double-quotes to enclose the list in one single argument.

$(SoundBankListAsTextFile)

A text file containing the list of SoundBanks passed to the command line or the selected SoundBanks in the SoundBank Manager. This can be useful when dealing with a long list of SoundBanks.

[Note]Note

The list is a space-separated list. Use double-quotes to enclose the list in one single argument.

$(SoundBankPath)

The path or location where the current platform's SoundBanks are saved.

$(UseSoundBankNames)

Specifies whether SoundBank names (true) or IDs (false) are used to name generated SoundBank BNK files, as well as within SoundBanks to refer to media in other SoundBanks.

This variable is set to true when the Use SoundBank names option is selected.

$(WwiseExeDriveLetter)

The drive letter on your workstation where the Wwise executable (Wwise.exe) is located.

$(WwiseExePath)

The path or location of the Wwise executable (Wwise.exe).

$(WwiseExeProcessID)

The numerical Process Identifier of the Wwise executable (Wwise.exe).

$(WwiseProjectDriveLetter)

The drive letter on your workstation where the Wwise project is located.

$(WwiseProjectName)

The name of the current project.

$(WwiseProjectPath)

The path or location of the Wwise project.

$(WaapiWampPort)

The port used by WAAPI for the WAMP protocol.

$(WaapiHttpPort)

The port used by WAAPI for the HTTP protocol.

[Note]Note

Environment variables are automatically mapped, for example, $(WWISESDK).

To be as flexible as possible, Wwise allows to configure different command lines for the following types of steps:

  • Global opening step - A command line that applies to all platforms and is performed before any other step.

  • Platform-specific pre-generation step - A command line that applies to a specific platform and is performed before the SoundBanks are generated.

  • Platform-specific post-generation step - A command line that applies to a specific platform and is performed after the SoundBanks are generated.

  • Global closing step - A command line that applies to all platforms and is performed after all other steps.

By default, every project includes a platform-specific post-generation step command line that copies the streamed files to the SoundBank directory. You can, however, automate any type of task by executing a different command line. Wwise also ships with another Factory command line that uses the File Packager to generate a package containing all data and media within your SoundBanks. For more information about the File Packager, refer to Managing file packages. For more information about loading factory command lines, refer to Loading factory/custom command lines.

You can also save the command lines you create to a file (WCMDLINE) so that you can use them later on, within the same project, across projects, or if you want to share them with other users. For more information on saving commands, refer to Saving custom command lines to a file.

To override the project pre-generation step:

  1. On the SoundBank Manager toolbar, click the SoundBank Settings tool:

    If user overrides already exist, the tool has an orange background.

  2. From the menu, select User SoundBank Settings.

  3. In the SoundBanks tab, select Override Project SoundBank Settings.

  4. Select the Override Project Pre-Generation Step option.

  5. To add to or modify the Global opening pre-generation step that is configured in the Project Settings dialog, click the corresponding Edit button (...).

    The Pre-Generation Step Editor opens.

  6. In the Description text box, type a name that clearly describes the step or task that will be performed.

  7. In the Commands text box, write a new command line or edit the existing command line, as required.

    [Note]Note

    The Commands text box works like most other text editors, which means you can add new lines of text by pressing Enter, delete text by selecting it and pressing Delete, and so on.

  8. If you want to insert built-in macros and environment variables in your command, do the following:

    In the Macros group, select one of the following options:

    • Built-in Macros - To display a list of Wwise-specific variables that can be used within the Wwise command lines.

    • Environment Variables - To display a list of Windows-specific environment variables that can be used within the Wwise command lines.

    To add a variable to the command line, do one of the following:

    • Double-click a variable in list.

    • Select a variable from the list and then click Insert.

    Continue to add variables to your command line, as required.

  9. If you want to add another pre-generation step, simply go to the end of the first line, press Enter, and then start creating a new command line.

  10. Click OK to save the command line and to close the Pre-Generation Step Editor.

    [Note]Note

    If you want to save the command line to file, click the Save As button in the Editor. For more information on saving custom command lines, refer to Saving custom command lines to a file.

  11. To add or modify the existing platform-specific pre-generation steps, repeat steps 3-8 for each platform.

    [Note]Note

    You can also load factory and previously saved custom command lines into the Editor by clicking the Load button. For more information on loading factory/custom commands, refer to Loading factory/custom command lines.

To override the project post-generation step:

  1. On the SoundBank Manager toolbar, click the SoundBank Settings tool:

    If user overrides already exist, the tool has an orange background.

  2. From the menu, select User SoundBank Settings.

  3. Select the Override Project Post-Generation Step option.

  4. To add or modify the existing post-generation step that is configured in the Project Settings dialog, click one of the Edit buttons.

    The Post-Generation Step Editor opens.

  5. In the Description text box, type a name that clearly describes the step(s) or task(s) that will be performed.

  6. In the Commands text box, write a new command line or edit the current command line, as required.

    [Note]Note

    The Commands text box works like most other text editors, which means you can add new lines of text by pressing Enter, delete text by selecting it and pressing Delete, and so on.

  7. If you want to insert built-in macros and environment variables in your command, do the following:

    In the Macros group, select one of the following options:

    • Built-in Macros - To display a list of ­Wwise-specific variables that can be used within the Wwise command lines.

    • Environment Variables - To display a list of Windows-specific environment variables that can be used within the Wwise command lines.

    To add a variable to the command line, do one of the following:

    • Double-click a variable in list.

    • Select a variable from the list and then click Insert.

    Continue to add variables to your command line, as required.

  8. If you want to add another pre-generation step, simply go to the end of the first line, press Enter, and then start creating a new command line.

  9. Click OK to save the command line and to close the Post-Generation Step Editor.

    [Note]Note

    If you want to save the command line to file, click the Save As button in the Editor. For more information on saving custom command lines, refer to Saving custom command lines to a file.

  10. Repeat steps 3-8 for the global closing step and/or for each additional platform.

    [Note]Note

    You can also load factory and previously saved custom command lines into the Editor by clicking the Load button. For more information on loading factory/custom commands, refer to Loading factory/custom command lines.

Specifying user settings for external sources

If you plan to use the External Source plug-in you must specify the location of the external audio files that will be used at runtime. You must also specify the folder in which the converted sources will be saved so that they can be used by Wwise while the game is being played. At a project level, this is done in the External Sources Tab of the Project Settings. See Specifying project settings for External Sources.

You can override these project settings with the user settings of the SoundBank Manager.

To specify user settings for external sources:

  1. On the SoundBank Manager toolbar, click the SoundBank Settings tool:

    If user overrides already exist, the tool has an orange background.

  2. From the menu, select User SoundBank Settings.

  3. In the SoundBank Settings dialog, switch to the External Sources tab. For a reference to the fields in this tab see SoundBanks Settings - External Sources Tab.

  4. Click OK. This applies the settings and they are used until you deselect them.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise