Gah - a solution with more questions. – EntropicLqd

UE3:UTMusicManager (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 11:47, 6 November 2009 by (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UDK Object >> Actor >> Info >> UTMusicManager
Package: 
UTGame
This class in other games:
UT3

Todo: add ability to use the TempoOverride

Properties

bPendingAction

Type: bool

Time at which last "action event" occurred - used to determine when to fade out action track.

CurrentState

Type: EMusicState


CurrentTrack

Type: AudioComponent


CurrFadeFactor

Type: float

Modifiers: private


CurrTempo

Type: float

Modifiers: private

This is the temp (in Beats Per Minutes) of the track that is currently playing *

LastActionEventTime

Type: float

Maximum volume for music audiocomponents (max value for VolumeMultiplier).

Default value: -1000.0

LastBeat

Type: int

Time at which current track started playing

MusicStartTime

Type: float


MusicTracks

Type: AudioComponent

Array size: 6

Track being ramped up, rather than faded out

MusicVolume

Type: float

Modifiers: globalconfig

Owner of this MusicManager

Default value: 0.36

PendingEvent

Type: int

Current Music state (reflects which track is active).

PendingEventDelay

Type: float


Default value: 0.125

PendingEventPlayTime

Type: float

Pending music event - will be processed on next beat.

PlayerOwner

Type: UTPlayerController

Pre-computed MusicVolume/CrossFadeTime deltatime multiplier for cross-fading

StingerVolumeMultiplier

Type: float

Modifiers: config

If true, switch to action on next beat

Default value: 1.1

Default values

Property Value
CollisionType COLLIDE_CustomDefault

Subobjects

Sprite

Class: Engine.SpriteComponent

Inherits from: Info.Sprite

Property Value
ReplacementPrimitive None

Enums

EMusicState

MST_Ambient 
MST_Tension 
MST_Suspense 
MST_Action 
MST_Victory 

Functions

Events

PostBeginPlay

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay

Music Tracks - see ChangeTrack() for definition of slots.

Tick

event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions

AlreadyInActionMusic

function bool AlreadyInActionMusic ()


ChangeTrack

function ChangeTrack (EMusicState NewState)

ChangeTrack()

Parameters:

  • NewState - New music state (track to ramp up).

CreateNewTrack

function AudioComponent CreateNewTrack (SoundCue MusicCue)


IntroFinished

function IntroFinished (AudioComponent AC)

delegate set to intro music's AudioComponent to detect when the music has completed

MusicEvent

function MusicEvent (int NewEventIndex)


ProcessMusicEvent

function ProcessMusicEvent ()

ProcessMusicEvent() process PendingEvent. Called from Tick() on a beat.

StartMusic

function StartMusic ()

StartMusic() Initialize MusicManager and start intro track.