Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    Audio listeners

    Beginner Designer

    An audio listener is an entity that listens for audio emitted by audio emitters to create spatialized audio. There can be multiple audio listeners in a scene. This is common, for example, in multiplayer games, where each player camera is an audio listener.

    You don't need to configure audio listeners. All settings for sound effects, including Volume and Pitch (Frequency), are configured on the audio emitter.

    If there's no audio listener in the scene, you won't hear audio from audio emitters.

    Add an audio listener component to an entity

    To create an audio listener, attach an audio listener component to an entity. You can attach this component to any entity.

    1. In Scene view, select the entity you want to be an audio listener:

      Select an entity

    2. In the Property Grid, click Add Component and select Audio listener component:

      Add AudioListener Component

      The entity is now an audio listener.

    Warning

    On iOS, you can create multiple objects with Audio listener component in a scene, but only one is used at runtime.

    See also

    • Spatialized audio
    • Audio emitters
    • Global audio settings
    • Improve this Doc
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation