Version

menu_open
Attention : vous avez été redirigé vers la plus récente documentation correspondant à votre version générale ( 2023.1.8.8601 ). Si vous souhaitez accéder à la documentation de votre version précise, veuillez télécharger la documentation hors ligne depuis l'Audiokinetic Launcher et sélectionner l'option de documentation Offline dans l'application de création Wwise.
Wwise Unreal Integration Documentation
Preparation for the Spatial Audio Tutorials
Note:
A map with the parameters for all tutorials is available as part of the Unreal Demo Game downloadable from the Audiokinetic Launcher. It is called SpatialAudioTutorialMap. If you want to follow along with that map, you can skip the following sections.

Create a New Project

Follow the steps below in order to build your working environment.

  1. Launch Unreal from the Epic launcher.
    1. Create a new Unreal Project C++ Blank project (without starter content).
    2. Close Unreal.
  2. Start the Audiokinetic Launcher.
    1. Install Wwise.
    2. Select the Unreal Engine tab.
    3. Click the Integrate Wwise into Project button.
    4. Launch Wwise using the Open in Wwise button.
    5. Launch Unreal using the Open in Unreal button.

Wwise Project Preparation

For the tutorial, you will need a Sound SFX and an Event to play it.

  1. In the Wwise project, create a new Sound SFX in the Default Work Unit of the Actor-Mixer Hierarchy and import a sound.
    1. Make sure to enable Use game-defined auxiliary sends in the General Settings tab.

    2. In the Positioning tab:

      1. Enable Listener Relative Routing
      2. Set 3D Spatialization to Position + Orientation
      3. Add an Attenuation with a Max distance of 5000.
      4. Enable Diffraction and Transmission
  2. Right-click on the Sound SFX within the Actor-Mixer Hierarchy, then select New Event > Play.

  3. Open the Project Settings
    1. In the Soundbanks tab, make sure Enable Auto-Defined SoudBanks is enabled.

  4. Save the project.
  5. Generate the SoundBanks.

Unreal Project Preparation

  1. Create a floor, a building with two rooms and an obstacle outside using your preferred method. In the SpatialAudioTutorialMap, we used a custom mesh for the building and a basic cube static mesh component for the obstacle outside.
  2. Place emitters in the scene:
    1. Drag the Event created in the previous section from the Wwise Browser to the Content Browser.

    2. Drag the Event into the scene to create new AkAmbientSound actors.
      1. Place one of them outside and one in each room.
      2. For all AkAmbientSound actors, make sure to set Refresh Interval to 0.

Here's an image of the Spatial Audio Tutorial Map.

  1. Open the Level Blueprint from the Blueprints menu.
    1. Trigger events with user input.
      1. Drag a newly created AkAmbientSound from the World Outliner into the Blueprint.
      2. Find the "Post Associated Ak Event" function from the AkAmbientSound node.
      3. Right-click the Blueprint background and search for "Left Mouse Button".
      4. Connect the Pressed outlet to the "Post Associated Ak Event" Exec.
    2. Repeat the same steps for all the AkAmbientSound items.

    3. Save and close the Level Blueprint.

Verify your Setup

  1. Start the scene. When pressing the respective buttons, you now hear the sounds play, spatialized in 3D.
  2. Connect to Wwise Authoring and open the Profiler layout (shortcut F6).

    1. When playing the sound outside, you see a graph similar to the following one.

Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise