BroAudio
Quick StartScripting APIAsset Store
  • Overview
    • Introduction
    • Getting Started
    • Compatibility
  • Core Features
    • Library Manager
      • Create The Library
      • Design The Sound
        • 🔊Volume
        • 🎚️Fading
        • 🔁Looping
        • 🎲Randomization
        • 💪Velocity
        • 🎛️Spatial & Mix
    • Audio Player
      • Music Player
      • Dominator Player
    • Playback Group
    • Audio Effect
    • No-Code Components
      • Sound Source
      • Sound Volume
      • Spectrum Analyzer
    • Addressables
    • Customization
  • Designs
    • Audio Mixer
  • Tools
    • Audio Clip Editor
    • Audio Effect Editor
    • Useful Attrubutes
  • Reference
    • Scripting API
      • Class
        • BroAudio
        • SoundSource
        • BroAdvice
      • Interface
        • IAudioPlayer
        • IMusicPlayer
        • IPlayerEffect
        • IAutoResetWaitable
        • IAudioSourceProxy
      • Struct
        • SoundID
        • Effect
        • Fading
      • Enums
        • BroAudioType
        • EffectType
        • StopMode
        • Transition
        • Ease
    • Unity API Integration
    • Audio Terminology
    • Technical Details
  • Others
    • Release Notes
    • Known Issues
      • Duplicate SoundID Issue
    • Roadmap
    • Support & Contact
Powered by GitBook
On this page
  • Introduction
  • How To Use?
  • .AsDominator()
  • Side Note:
  1. Core Features
  2. Audio Player

Dominator Player

Last updated 6 days ago

Introduction

Dominator allows you to 'dominate' other sounds while playing it, meaning Dominator will play in a normal way, while other sounds will be affected by the effects you specify until the Dominator is finished.

This feature is not supported in WebGL,

How To Use?

.AsDominator()

Common use cases and API examples:

When an explosion occurs nearby, other sounds become temporarily unclear, but the tinnitus, heartbeat, or breathing remain clear.

BroAudio.Play(_explosion).AsDominator().LowPassOthers(_lowPassFrequency); 
BroAudio.Play(_tinnitus).AsDominator().LowPassOthers(_lowPassFrequency); 

When the theme song plays, lower the volume of all other sounds.

BroAudio.Play(_deathStrandingAwesomeMusic).AsDominator().QuietOthers(othersVol);

Side Note:

Even though this feature is straightforward and effective, it might not cover all complex situations. For these, you can individually apply the SetEffect to specific sounds or sound categories. Essentially, this feature is built upon using SetEffect.

Go to view all API
more details.
Page cover image