AMusicManager
(AActor)
(AActor)
The MusicManager is a premade system for handling background music within the KAudioSystem. It is designed to load one MusicLayout per MusicClassification at a time and passes game parameters automatically to this layout. Every time PlayMusic() is called, the MusicManager will evaluate loaded MusicLayouts and play the layout with the highest classification. This also allows the music system to support reversion when neutral music is overriden based on game state. The MusicManager contains all functions needed to indirectly interact with the MusicLayout and can be gotten from the AudioManagerSubsystem. It also broadcasts tempo-synchronized events for any other game system to subscribe and listen to.
Loads a MusicLayout and sorts it by MusicClassification. Destroy previous MusicLayout if one exists in the MusicManager with the same classification.
Calls the CustomTrigger() function on the currently activated MusicLayout.
Call this function to play a music stinger in sync with the current MusicLayout tempo. Immediately plays the stinger if no layout is active or no MusicSegment is playing.
Sets the local AudioSwitchParameter value of an AudioGroupParameter for the MusicManager.
Sets the local float value of an AudioFloatParameter locally for the MusicManager.
Subscribe to this event to receive tempo-synched events plus measure and beat information from the music system.