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
  • Description
  • Public Methods
  1. Reference
  2. Scripting API
  3. Interface

IMusicPlayer

The interface of the Music Player feature

Last updated 11 months ago

NameSpace
Accessibility

Ami.BroAudio

public

Description

This is returned by the method. It's basically the same as , but it includes a SetTransition() method and excludes the AsBGM() method.

Public Methods

Method
Return
Parameters
Description

SetTransition

transition

Set the transition mode that the music player will apply when playing the next BGM

transition, float fadeTime

Same as above, but can override the fade time set in LibarayManager

transition, stopMode

Same as above, but can specify the StopMode

transition, stopMode, float fadeTime

Same as above with all the parameters

IAudioPlayer
IMusicPlayer
Transition
Transition
Transition
StopMode
Transition
StopMode
AsBGM()